1999-12-15 09:40:24 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# 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/
|
1998-08-21 03:34:44 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# 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.
|
1998-08-21 03:34:44 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1998-08-21 03:34:44 +00:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1998-08-21 03:34:44 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DEPTH = .
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2000-04-18 09:42:12 +00:00
|
|
|
include $(topsrcdir)/build/unix/modules.mk
|
|
|
|
|
|
|
|
ifneq ($(BUILD_MODULES),all)
|
|
|
|
|
|
|
|
DIRS = $(BUILD_MODULE_DIRS)
|
2000-12-11 06:52:25 +00:00
|
|
|
EXPORT_DIRS = $(BUILD_MODULE_DEP_DIRS)
|
2000-06-28 04:32:15 +00:00
|
|
|
|
2000-04-18 09:42:12 +00:00
|
|
|
else
|
|
|
|
|
1999-11-16 17:33:41 +00:00
|
|
|
DIRS = config build
|
1998-11-11 01:53:49 +00:00
|
|
|
|
2000-03-09 02:08:23 +00:00
|
|
|
ifdef MOZ_JAVA_SUPPLEMENT
|
|
|
|
DIRS += \
|
|
|
|
java/util \
|
|
|
|
java/webclient \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
1999-10-08 01:32:44 +00:00
|
|
|
|
1999-10-18 23:14:16 +00:00
|
|
|
# boehm needs to be built before XPCOM
|
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
DIRS += gc/boehm
|
|
|
|
endif
|
|
|
|
|
2000-08-11 00:13:39 +00:00
|
|
|
DIRS += $(NSPRPUB_DIR)
|
|
|
|
|
2001-02-21 11:09:35 +00:00
|
|
|
DIRS += dbm modules/libreg js string xpcom js/src/xpconnect
|
2000-05-20 02:45:59 +00:00
|
|
|
|
|
|
|
ifdef MOZ_OJI
|
|
|
|
DIRS += js/src/liveconnect
|
|
|
|
endif
|
1998-11-11 01:53:49 +00:00
|
|
|
|
2001-05-15 20:42:29 +00:00
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
DIRS += js/jsd
|
|
|
|
endif
|
|
|
|
|
1998-11-11 01:53:49 +00:00
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
1999-09-08 22:59:23 +00:00
|
|
|
DIRS += modules/zlib
|
1998-11-11 01:53:49 +00:00
|
|
|
endif
|
|
|
|
|
1999-02-02 17:39:01 +00:00
|
|
|
ifndef MOZ_NATIVE_JPEG
|
1999-09-08 22:59:23 +00:00
|
|
|
DIRS += jpeg
|
1999-02-02 17:39:01 +00:00
|
|
|
endif
|
|
|
|
|
2000-10-05 04:35:18 +00:00
|
|
|
ifdef MOZ_ENABLE_XLIB
|
|
|
|
DIRS += gfx/src/xlibrgb widget/src/xlibxtbin
|
|
|
|
endif
|
|
|
|
|
2000-04-22 20:45:12 +00:00
|
|
|
ifdef MOZ_ENABLE_GTK
|
|
|
|
DIRS += widget/src/gtksuperwin widget/src/gtkxtbin
|
|
|
|
endif
|
|
|
|
|
2000-09-09 14:18:48 +00:00
|
|
|
# Linux and Solaris installer needs standalone libjar, hence standalone zlib
|
2000-09-11 08:08:24 +00:00
|
|
|
ifneq (,$(filter Linux SunOS,$(OS_ARCH)))
|
2000-08-19 23:33:23 +00:00
|
|
|
DIRS += modules/zlib/standalone
|
|
|
|
endif
|
|
|
|
|
1999-09-08 22:59:23 +00:00
|
|
|
DIRS += \
|
2000-03-02 13:29:03 +00:00
|
|
|
widget/timer \
|
1999-10-08 22:36:46 +00:00
|
|
|
include \
|
1999-12-21 23:55:04 +00:00
|
|
|
modules/libutil \
|
2000-09-14 19:27:23 +00:00
|
|
|
netwerk \
|
2000-09-22 03:46:18 +00:00
|
|
|
modules/mpfilelocprovider \
|
1999-11-18 06:03:27 +00:00
|
|
|
uriloader \
|
1999-09-08 22:59:23 +00:00
|
|
|
intl \
|
|
|
|
modules/libpref \
|
|
|
|
modules/libimg \
|
|
|
|
modules/oji \
|
|
|
|
modules/libjar \
|
|
|
|
caps \
|
2001-02-22 03:01:34 +00:00
|
|
|
rdf \
|
1999-09-08 22:59:23 +00:00
|
|
|
expat \
|
|
|
|
htmlparser \
|
|
|
|
gfx \
|
2001-08-12 00:38:38 +00:00
|
|
|
gfx2 \
|
|
|
|
modules/libpr0n \
|
2000-07-22 01:27:15 +00:00
|
|
|
modules/plugin \
|
1999-09-08 22:59:23 +00:00
|
|
|
dom \
|
|
|
|
view \
|
|
|
|
widget \
|
2001-02-19 21:50:04 +00:00
|
|
|
content \
|
1999-09-08 22:59:23 +00:00
|
|
|
layout \
|
|
|
|
db \
|
1999-11-29 22:22:20 +00:00
|
|
|
docshell \
|
1999-09-08 22:59:23 +00:00
|
|
|
webshell \
|
2000-08-10 07:07:13 +00:00
|
|
|
embedding \
|
1999-09-08 22:59:23 +00:00
|
|
|
editor \
|
|
|
|
sun-java \
|
|
|
|
profile \
|
2000-08-10 06:43:05 +00:00
|
|
|
themes \
|
1999-09-08 22:59:23 +00:00
|
|
|
$(NULL)
|
1998-11-18 22:35:21 +00:00
|
|
|
|
2001-08-17 03:13:07 +00:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
DIRS += accessible
|
|
|
|
endif
|
|
|
|
|
2000-03-04 01:50:50 +00:00
|
|
|
# This must preceed xpfe
|
|
|
|
ifdef MOZ_JPROF
|
|
|
|
DIRS += tools/jprof
|
|
|
|
endif
|
|
|
|
|
1999-11-16 15:56:31 +00:00
|
|
|
DIRS += xpfe
|
|
|
|
|
2001-04-19 03:00:55 +00:00
|
|
|
DIRS += xpinstall
|
|
|
|
|
2001-04-14 03:20:48 +00:00
|
|
|
ifdef MOZ_PSM
|
2001-05-10 03:00:37 +00:00
|
|
|
DIRS += security/manager
|
2001-04-14 03:20:48 +00:00
|
|
|
endif
|
|
|
|
|
2001-06-20 10:57:16 +00:00
|
|
|
ifdef MOZ_LDAP_XPCOM
|
|
|
|
DIRS += directory/c-sdk/ldap directory/xpcom
|
|
|
|
endif
|
|
|
|
|
1999-11-16 15:56:31 +00:00
|
|
|
ifdef MOZ_EXTENSIONS
|
|
|
|
DIRS += extensions
|
1999-02-18 04:19:43 +00:00
|
|
|
endif
|
1998-10-28 03:40:33 +00:00
|
|
|
|
1999-02-02 19:34:49 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
1999-09-08 22:59:23 +00:00
|
|
|
DIRS += mailnews
|
1999-02-02 19:34:49 +00:00
|
|
|
endif
|
|
|
|
|
1999-09-25 20:44:48 +00:00
|
|
|
ifdef MOZ_LEAKY
|
|
|
|
DIRS += tools/leaky
|
|
|
|
endif
|
|
|
|
|
2000-03-02 13:29:03 +00:00
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
DIRS += xpcom/tests
|
|
|
|
endif
|
|
|
|
|
2001-09-08 18:29:24 +00:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
DIRS += tools/trace-malloc
|
|
|
|
endif
|
|
|
|
|
2000-06-27 00:24:48 +00:00
|
|
|
DIRS += l10n
|
|
|
|
|
2001-06-20 20:21:49 +00:00
|
|
|
ifneq (,$(MOZ_STATIC_COMPONENTS)$(MOZ_META_COMPONENTS))
|
2000-11-21 23:40:34 +00:00
|
|
|
DIRS += modules/staticmod
|
|
|
|
endif
|
|
|
|
|
2001-04-28 17:26:54 +00:00
|
|
|
DIRS += xpfe/bootstrap
|
|
|
|
|
2000-04-18 09:42:12 +00:00
|
|
|
endif # BUILD_MODULES == all
|
|
|
|
|
2001-03-29 06:57:35 +00:00
|
|
|
STATIC_MAKEFILES := $(NSPRPUB_DIR) directory/c-sdk/ldap
|
2000-05-03 22:49:47 +00:00
|
|
|
|
2001-04-16 10:48:48 +00:00
|
|
|
ifdef MOZ_PSM
|
|
|
|
STATIC_MAKEFILES += security/nss
|
2001-04-09 09:38:30 +00:00
|
|
|
endif
|
|
|
|
|
2000-08-30 01:15:32 +00:00
|
|
|
GARBAGE_DIRS += dist
|
2000-03-17 00:49:15 +00:00
|
|
|
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
|
2000-06-12 23:02:14 +00:00
|
|
|
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
2000-12-12 21:28:24 +00:00
|
|
|
unallmakefiles \
|
2000-07-07 10:34:45 +00:00
|
|
|
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
1998-10-28 03:40:33 +00:00
|
|
|
|
2000-03-14 06:16:27 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2000-02-23 22:47:39 +00:00
|
|
|
|
2000-12-11 06:52:25 +00:00
|
|
|
export::
|
|
|
|
+$(LOOP_OVER_EXPORT_DIRS)
|
|
|
|
|
2001-09-12 06:42:26 +00:00
|
|
|
export::
|
|
|
|
@$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include
|
|
|
|
|
2000-12-12 21:28:24 +00:00
|
|
|
distclean::
|
|
|
|
cat unallmakefiles | $(XARGS) rm -f
|
|
|
|
rm -f unallmakefiles $(DIST_GARBAGE)
|
|
|
|
|