1999-12-15 09:40:24 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-08-21 03:34:44 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00:00
|
|
|
# The contents of this file are subject to the Mozilla 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/MPL/
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2004-07-16 18:13:26 +00:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-11-06 03:43:54 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
1998-08-21 03:34:44 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-08-21 03:34:44 +00:00
|
|
|
|
|
|
|
DEPTH = .
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2006-08-25 10:45:39 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
|
|
|
default alldep all::
|
2005-11-08 17:53:54 +00:00
|
|
|
$(RM) -rf $(DIST)/sdk
|
|
|
|
$(RM) -rf $(DIST)/include
|
2007-03-02 16:38:42 +00:00
|
|
|
$(RM) -rf _tests
|
2005-11-08 17:53:54 +00:00
|
|
|
$(MAKE) -C config export
|
|
|
|
|
2006-08-29 16:53:40 +00:00
|
|
|
TIERS += base
|
2000-05-03 22:49:47 +00:00
|
|
|
|
2006-08-29 16:53:40 +00:00
|
|
|
#
|
|
|
|
# tier "base" - basic setup
|
|
|
|
#
|
|
|
|
tier_base_dirs = \
|
2006-03-09 05:47:25 +00:00
|
|
|
config \
|
|
|
|
build \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-08-29 16:53:40 +00:00
|
|
|
include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
|
2006-03-09 05:47:25 +00:00
|
|
|
|
2006-08-29 16:53:40 +00:00
|
|
|
TIERS += testharness
|
2002-10-25 05:59:52 +00:00
|
|
|
|
2006-08-29 16:53:40 +00:00
|
|
|
# test harnesses
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
tier_testharness_dirs += tools/test-harness
|
2002-10-25 09:48:06 +00:00
|
|
|
endif
|
2002-10-25 05:59:52 +00:00
|
|
|
|
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 \
|
2002-08-22 00:50:51 +00:00
|
|
|
unallmakefiles mozilla-config.h \
|
2006-04-28 14:54:54 +00:00
|
|
|
gfx/gfx-config.h netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
|
2000-07-07 10:34:45 +00:00
|
|
|
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
1998-10-28 03:40:33 +00:00
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
# Build pseudo-external modules first when export is explicitly called
|
2002-01-25 22:29:51 +00:00
|
|
|
export::
|
2004-03-23 20:58:21 +00:00
|
|
|
$(RM) -rf $(DIST)/sdk
|
2002-01-25 22:29:51 +00:00
|
|
|
$(MAKE) -C config export
|
2006-08-25 10:45:39 +00:00
|
|
|
$(MAKE) tier_nspr
|
2002-04-25 20:40:00 +00:00
|
|
|
|
|
|
|
install::
|
|
|
|
ifdef MOZ_LDAP_XPCOM
|
|
|
|
$(MAKE) -C directory/c-sdk real_install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/ldap
|
|
|
|
endif
|
|
|
|
|
2000-03-14 06:16:27 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2000-02-23 22:47:39 +00:00
|
|
|
|
2006-08-29 18:02:16 +00:00
|
|
|
# After we build tier toolkit, go back and build the tools from previous dirs
|
2006-08-29 16:53:40 +00:00
|
|
|
tier_toolkit::
|
2006-08-29 18:02:16 +00:00
|
|
|
$(MAKE) tools_tier_js
|
|
|
|
$(MAKE) tools_tier_xpcom
|
2006-09-28 21:22:27 +00:00
|
|
|
$(MAKE) tools_tier_necko
|
2006-08-29 16:53:40 +00:00
|
|
|
$(MAKE) tools_tier_gecko
|
|
|
|
$(MAKE) tools_tier_toolkit
|
2001-11-16 07:40:42 +00:00
|
|
|
|
2006-09-28 21:22:27 +00:00
|
|
|
ifeq (netwerk,$(MOZ_BUILD_APP))
|
|
|
|
tier_necko::
|
|
|
|
$(EXIT_ON_ERROR) \
|
|
|
|
$(foreach tier,$(TIERS),$(MAKE) tools_tier_$(tier); )
|
|
|
|
endif
|
|
|
|
|
2000-12-12 21:28:24 +00:00
|
|
|
distclean::
|
|
|
|
cat unallmakefiles | $(XARGS) rm -f
|
|
|
|
rm -f unallmakefiles $(DIST_GARBAGE)
|
2002-03-01 01:01:42 +00:00
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
rebase:
|
2002-03-07 08:23:11 +00:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2002-03-01 01:01:42 +00:00
|
|
|
echo rebasing $(DIST)
|
|
|
|
/bin/find $(DIST) -name "*.dll" > rebase.lst
|
|
|
|
rebase -b 60000000 -R . -G rebase.lst
|
2002-03-07 08:23:11 +00:00
|
|
|
rm rebase.lst
|
2002-03-01 01:01:42 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
splitsymbols:
|
2002-03-07 08:23:11 +00:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2004-08-26 23:03:01 +00:00
|
|
|
ifdef MOZ_DEBUG_SYMBOLS
|
|
|
|
echo finding pdb files
|
|
|
|
mkdir -p $(DIST)/$(BUILDID)
|
|
|
|
-cp `/bin/find . -path "./dist" -prune -o -name "*.dll" | sed "s/\.dll$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
|
|
|
-cp `/bin/find . -path "./dist" -prune -o -name "*.exe" | sed "s/\.exe$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
|
|
|
-cp `/bin/find . -path "./dist" -prune -o -name "*.EXE" | sed "s/\.EXE$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
|
|
|
endif # MOZ_DEBUG_SYMBOLS
|
|
|
|
ifdef MOZ_PROFILE
|
2002-03-01 01:01:42 +00:00
|
|
|
echo splitting symbols out of binaries
|
|
|
|
/bin/find $(DIST) -name "*.dll" -exec splitsym {} \;
|
|
|
|
/bin/find $(DIST) -name "*.exe" -exec splitsym {} \;
|
|
|
|
/bin/find $(DIST) -name "*.EXE" -exec splitsym {} \;
|
2004-04-05 18:10:59 +00:00
|
|
|
mkdir -p $(DIST)/$(BUILDID)
|
|
|
|
/bin/find $(DIST) -name "*.dbg" -exec mv {} $(DIST)/$(BUILDID) \;
|
2004-08-26 23:03:01 +00:00
|
|
|
endif # MOZ_PROFILE
|
2002-03-01 01:01:42 +00:00
|
|
|
endif # MOZILLA_OFFICIAL
|
|
|
|
|
2007-01-11 23:42:21 +00:00
|
|
|
buildsymbols:
|
|
|
|
ifdef MOZ_DEBUG_SYMBOLS
|
|
|
|
ifdef MOZ_AIRBAG
|
2007-03-26 14:55:27 +00:00
|
|
|
echo building symbol store
|
|
|
|
mkdir -p $(DIST)/crashreporter-symbols/$(BUILDID)
|
2007-01-11 23:42:21 +00:00
|
|
|
/bin/find . -path "./dist" -prune -o -name "*.exe" \
|
|
|
|
-o -name "*.dll" -o -name "*.EXE" | sed "s/\.[^\.]*$$/\.pdb/" | \
|
|
|
|
xargs $(topsrcdir)/toolkit/airbag/tools/make_symbol_store.pl -c \
|
|
|
|
$(topsrcdir)/toolkit/airbag/tools/win32/dump_syms.exe \
|
2007-03-26 14:55:27 +00:00
|
|
|
$(DIST)/crashreporter-symbols/$(BUILDID) > \
|
|
|
|
$(DIST)/crashreporter-symbols/$(BUILDID)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_ARCH)-$(BUILDID)-symbols.txt
|
2007-01-11 23:42:21 +00:00
|
|
|
echo packing symbols
|
|
|
|
mkdir -p $(topsrcdir)/../$(BUILDID)
|
2007-03-26 14:55:27 +00:00
|
|
|
cd $(DIST)/crashreporter-symbols/$(BUILDID) && \
|
|
|
|
zip -r9D ../crashreporter-symbols-$(BUILDID).zip .
|
|
|
|
mv $(DIST)/crashreporter-symbols/crashreporter-symbols-$(BUILDID).zip \
|
|
|
|
$(topsrcdir)/../$(BUILDID)
|
2007-01-11 23:42:21 +00:00
|
|
|
endif # MOZ_DEBUG_SYMBOLS
|
|
|
|
endif # MOZ_AIRBAG
|
|
|
|
|
2006-12-06 01:16:05 +00:00
|
|
|
uploadsymbols:
|
|
|
|
ifdef MOZ_DEBUG_SYMBOLS
|
|
|
|
ifdef MOZ_AIRBAG
|
2007-04-04 18:47:44 +00:00
|
|
|
$(topsrcdir)/toolkit/airbag/tools/upload_symbols.sh $(topsrcdir)/../$(BUILDID)/crashreporter-symbols-$(BUILDID).zip
|
2006-12-06 01:16:05 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-02-07 20:03:32 +00:00
|
|
|
## XXXvlad -- the test and cp should be removed once bug 249782 is
|
|
|
|
## completely fixed
|
2003-05-17 00:58:24 +00:00
|
|
|
signnss:
|
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
|
|
echo signing NSS libs
|
2006-10-18 12:24:48 +00:00
|
|
|
ifdef MSMANIFEST_TOOL
|
2006-02-07 20:03:32 +00:00
|
|
|
test -f $(DEPTH)/nss/shlibsign.exe.manifest && cp $(DEPTH)/nss/shlibsign.exe.manifest $(DIST)/bin
|
2006-10-18 12:24:48 +00:00
|
|
|
endif
|
2003-05-17 00:58:24 +00:00
|
|
|
cd $(DIST)/bin; ./shlibsign.exe -v -i softokn3.dll
|
2006-01-13 18:09:32 +00:00
|
|
|
cd $(DIST)/bin; ./shlibsign.exe -v -i freebl3.dll
|
2003-05-17 00:58:24 +00:00
|
|
|
endif # MOZILLA_OFFICIAL
|
|
|
|
|
2004-04-05 18:10:59 +00:00
|
|
|
BUILDID = $(shell cat $(DEPTH)/config/build_number)
|
2003-05-17 00:58:24 +00:00
|
|
|
deliver: splitsymbols rebase signnss
|
2002-03-01 01:01:42 +00:00
|
|
|
|
|
|
|
endif # WINNT
|
2002-03-05 15:22:48 +00:00
|
|
|
|