bug 332717: Rework and simplify Makefile. r=dmose,sr=bsmedberg

This commit is contained in:
mattwillis%gmail.com 2006-04-10 21:31:10 +00:00
Родитель edc4a52d3b
Коммит daf1edcc85
1 изменённых файлов: 46 добавлений и 58 удалений

Просмотреть файл

@ -35,10 +35,10 @@
#
# ***** END LICENSE BLOCK *****
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
@ -56,6 +56,7 @@ endif
ifdef MOZ_SUNBIRD
MOZ_HAVE_BROWSER=
endif
ifneq (,$(MOZ_PHOENIX)$(MOZ_XULRUNNER))
# Firefox and XULRunner use this flag to suppress the distribution of chrome from
# the jar.mn file that lives parallel to this Makefile. The jar.mn is responsible
@ -63,90 +64,77 @@ ifneq (,$(MOZ_PHOENIX)$(MOZ_XULRUNNER))
DEFINES += -DSUPPRESS_CHROME
endif
ifndef MOZ_SUNBIRD
DIRS = \
find \
intl \
windowds \
$(NULL)
ifdef MOZ_HAVE_BROWSER
DIRS = \
directory \
find \
intl \
resetPref \
killAll \
windowds \
$(NULL)
DIRS += \
directory \
resetPref \
killAll \
$(NULL)
TOOL_DIRS = \
filepicker \
$(NULL)
filepicker \
$(NULL)
ifndef MOZ_PHOENIX
ifndef MOZ_XULRUNNER
DIRS += \
related \
console \
updates \
autocomplete \
bookmarks \
download-manager \
history \
sidebar \
startup \
alerts \
extensions \
$(NULL)
related \
prefwindow \
console \
updates \
autocomplete \
bookmarks \
download-manager \
history \
sidebar \
startup \
alerts \
extensions \
$(NULL)
endif
endif
ifeq ($(OS_ARCH),WINNT)
ifndef MOZ_PHOENIX
ifndef MOZ_XULRUNNER
DIRS += urlwidget winhooks
DIRS += urlwidget winhooks
endif
endif
endif
# build should be last
DIRS += build
else
# !MOZ_HAVE_BROWSER
DIRS = \
intl \
find \
filepicker \
autocomplete \
windowds \
console \
history/public \
bookmarks/public \
$(NULL)
ifdef MOZ_HAVE_BROWSER
DIRS += alerts prefwindow
endif
ifeq ($(OS_ARCH),WINNT)
DIRS += winhooks
endif
DIRS += \
filepicker \
autocomplete \
console \
history/public \
bookmarks/public \
$(NULL)
ifeq ($(OS_ARCH),WINNT)
DIRS += winhooks
endif
ifndef MOZ_XUL_APP
ifdef MOZ_ENABLE_XREMOTE
TOOL_DIRS += xremote
TOOL_DIRS += xremote
endif
endif
ifdef MOZ_HAVE_BROWSER
DIRS += build
else
DIRS += build2
endif
# build2 should be last
DIRS += build2
else
# MOZ_SUNBIRD
DIRS = \
console \
filepicker \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk