mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
195 lines
3.4 KiB
Makefile
195 lines
3.4 KiB
Makefile
#
|
|
# The contents of this file are subject to the Netscape Public
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
# except in compliance with the License. You may obtain a copy of
|
|
# the License at http://www.mozilla.org/NPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
# implied. See the License for the specific language governing
|
|
# rights and limitations under the License.
|
|
#
|
|
# The Original Code is mozilla.org code.
|
|
#
|
|
# The Initial Developer of the Original Code is Netscape
|
|
# Communications Corporation. Portions created by Netscape are
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
# Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
#
|
|
|
|
DEPTH = .
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/build/unix/modules.mk
|
|
|
|
ifneq ($(BUILD_MODULES),all)
|
|
|
|
DIRS = $(BUILD_MODULE_DIRS)
|
|
EXPORT_DIRS = $(BUILD_MODULE_DEP_DIRS)
|
|
|
|
else
|
|
|
|
DIRS = config build
|
|
|
|
ifdef MOZ_JAVA_SUPPLEMENT
|
|
DIRS += \
|
|
java/util \
|
|
java/webclient \
|
|
$(NULL)
|
|
endif
|
|
|
|
# boehm needs to be built before XPCOM
|
|
ifdef GC_LEAK_DETECTOR
|
|
DIRS += gc/boehm
|
|
endif
|
|
|
|
DIRS += $(NSPRPUB_DIR)
|
|
|
|
DIRS += dbm modules/libreg js string xpcom js/src/xpconnect
|
|
|
|
ifdef MOZ_OJI
|
|
DIRS += js/src/liveconnect
|
|
endif
|
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
DIRS += js/jsd
|
|
endif
|
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
|
DIRS += modules/zlib
|
|
endif
|
|
|
|
ifndef MOZ_NATIVE_JPEG
|
|
DIRS += jpeg
|
|
endif
|
|
|
|
ifdef MOZ_ENABLE_XLIB
|
|
DIRS += gfx/src/xlibrgb widget/src/xlibxtbin
|
|
endif
|
|
|
|
ifdef MOZ_ENABLE_GTK
|
|
DIRS += widget/src/gtksuperwin widget/src/gtkxtbin
|
|
endif
|
|
|
|
# Linux and Solaris installer needs standalone libjar, hence standalone zlib
|
|
ifneq (,$(filter Linux SunOS,$(OS_ARCH)))
|
|
DIRS += modules/zlib/standalone
|
|
endif
|
|
|
|
DIRS += \
|
|
widget/timer \
|
|
include \
|
|
modules/libutil \
|
|
netwerk \
|
|
modules/mpfilelocprovider \
|
|
uriloader \
|
|
intl \
|
|
modules/libpref \
|
|
modules/libimg \
|
|
modules/oji \
|
|
modules/libjar \
|
|
caps \
|
|
rdf \
|
|
expat \
|
|
htmlparser \
|
|
gfx \
|
|
$(NULL)
|
|
|
|
ifdef USE_IMG2
|
|
DIRS += gfx2 modules/libpr0n
|
|
endif
|
|
|
|
DIRS += \
|
|
modules/plugin \
|
|
dom \
|
|
view \
|
|
widget \
|
|
content \
|
|
layout \
|
|
db \
|
|
docshell \
|
|
webshell \
|
|
embedding \
|
|
editor \
|
|
sun-java \
|
|
profile \
|
|
themes \
|
|
accessible \
|
|
$(NULL)
|
|
|
|
# This must preceed xpfe
|
|
ifdef MOZ_JPROF
|
|
DIRS += tools/jprof
|
|
endif
|
|
|
|
ifdef MOZ_BUILD_XPFE
|
|
DIRS += xpfe
|
|
endif
|
|
|
|
DIRS += xpinstall
|
|
|
|
ifdef MOZ_PSM
|
|
ifdef MOZ_NSS_AUTOCONF
|
|
DIRS += security/nss
|
|
endif
|
|
DIRS += security/manager
|
|
endif
|
|
|
|
ifdef MOZ_LDAP_XPCOM
|
|
DIRS += directory/c-sdk/ldap directory/xpcom
|
|
endif
|
|
|
|
ifdef MOZ_EXTENSIONS
|
|
DIRS += extensions
|
|
endif
|
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
DIRS += mailnews
|
|
endif
|
|
|
|
ifdef MOZ_LEAKY
|
|
DIRS += tools/leaky
|
|
endif
|
|
|
|
ifdef ENABLE_TESTS
|
|
DIRS += xpcom/tests
|
|
endif
|
|
|
|
DIRS += l10n
|
|
|
|
ifneq (,$(MOZ_STATIC_COMPONENTS)$(MOZ_META_COMPONENTS))
|
|
DIRS += modules/staticmod
|
|
endif
|
|
|
|
DIRS += xpfe/bootstrap
|
|
|
|
endif # BUILD_MODULES == all
|
|
|
|
STATIC_MAKEFILES := $(NSPRPUB_DIR) directory/c-sdk/ldap
|
|
|
|
ifdef MOZ_PSM
|
|
STATIC_MAKEFILES += security/nss
|
|
endif
|
|
|
|
GARBAGE_DIRS += dist
|
|
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
|
|
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
|
unallmakefiles \
|
|
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
export::
|
|
+$(LOOP_OVER_EXPORT_DIRS)
|
|
|
|
distclean::
|
|
cat unallmakefiles | $(XARGS) rm -f
|
|
rm -f unallmakefiles $(DIST_GARBAGE)
|
|
|