Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 227 lines (195 sloc) 7.426 kb
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
1 #
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 #
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
9 #
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
14 #
15 # The Original Code is mozilla.org code.
16 #
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1998
20 # the Initial Developer. All Rights Reserved.
21 #
22 # Contributor(s):
23 #
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 2 or later (the "GPL"), or
26 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
35 #
36 # ***** END LICENSE BLOCK *****
37
38 DEPTH = .
39 topsrcdir = @top_srcdir@
40 srcdir = @srcdir@
41 VPATH = @srcdir@
42
00e5abb @bsmedberg When building with pymake, use gmake for NSS because of the pain and …
bsmedberg authored
43 ifndef .PYMAKE
44 ifeq (,$(MAKE_VERSION))
45 $(error GNU Make is required)
46 endif
47 ifeq (,$(filter-out 3.78 3.79,$(MAKE_VERSION)))
48 $(error GNU Make 3.80 or higher is required)
49 endif
50 endif
51
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
52 include $(DEPTH)/config/autoconf.mk
53
6205031 @bsmedberg Bug 466486 - Don't use a subshell to recurse over DIRS when DIRS is e…
bsmedberg authored
54 default::
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
55
56 TIERS += base
57
58 #
59 # tier "base" - basic setup
c66c7cf Bug 395407 - "Symbol upload and unpack can conflict if builds have th…
bent.mozilla@gmail.com authored
60 #
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
61 tier_base_dirs = \
62 config \
63 build \
d49aba1 Landing basic framework for dtrace support (bug 388564). Patch by joh…
jst@mozilla.org authored
64 probes \
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
65 $(NULL)
66
90905ce Bug 552385 - "Memory" directory is compiling twice while building fen…
Egor Starkov authored
67 ifndef LIBXUL_SDK
68 tier_base_dirs += \
69 memory \
70 $(NULL)
a68a3d0 @michaelwu Bug 588607 - 4a. Wrap the dl* functions with our own version, r=ted a…
michaelwu authored
71 ifeq ($(OS_TARGET),Android)
72 tier_base_dirs += other-licenses/android
73 endif
74
90905ce Bug 552385 - "Memory" directory is compiling twice while building fen…
Egor Starkov authored
75 endif
76
4c700ff @fqueze Bug 498330 - make distclean doesn't work with --disable-compile-envir…
fqueze authored
77 ifdef COMPILE_ENVIRONMENT
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
78 include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
4c700ff @fqueze Bug 498330 - make distclean doesn't work with --disable-compile-envir…
fqueze authored
79 endif
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
80
81
6205031 @bsmedberg Bug 466486 - Don't use a subshell to recurse over DIRS when DIRS is e…
bsmedberg authored
82 include $(topsrcdir)/config/config.mk
83
378cac5 Bug 333308 - "make clean and make distclean miss various files" (clea…
reed@reedloden.com authored
84 GARBAGE_DIRS += dist _javagen _profile _tests staticlib
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
85 DIST_GARBAGE = config.cache config.log config.status config-defs.h \
2e8a7d5 @Mitch-1-2 Bug 627277 - Remove (broken) BeOS support. r=biesi,dwitte,gavin,joe,j…
Mitch-1-2 authored
86 config/autoconf.mk \
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
87 unallmakefiles mozilla-config.h \
bab13a3 Bug 412923: Remove gfx/gfx-config.h.in, r=ted.mielczarek, a=beltzner
mozilla@weilbacher.org authored
88 netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
c66c7cf Bug 395407 - "Symbol upload and unpack can conflict if builds have th…
bent.mozilla@gmail.com authored
89 $(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
90
557620e @khuey Backed out changeset 0ac9a37f9428
khuey authored
91 default alldep all:: $(topsrcdir)/configure config.status
2416c34 @Mitch-1-2 Bug 645356 - Use pymake builtins. r=khuey
Mitch-1-2 authored
92 $(RM) -r $(DIST)/sdk
93 $(RM) -r $(DIST)/include
94 $(RM) -r $(DIST)/private
95 $(RM) -r $(DIST)/public
96 $(RM) -r $(DIST)/bin/components
97 $(RM) -r _tests
6205031 @bsmedberg Bug 466486 - Don't use a subshell to recurse over DIRS when DIRS is e…
bsmedberg authored
98
9f157de @vvuk b=530038; add build warning if configure or config.status are out of …
vvuk authored
99 $(topsrcdir)/configure: $(topsrcdir)/configure.in
100 @echo "STOP! configure.in has changed, and your configure is out of date."
101 @echo "Please rerun autoconf and re-configure your build directory."
102 @echo "To ignore this message, touch 'configure' in the source directory,"
103 @echo "but your build might not succeed."
104 @exit 1
105
106 config.status: $(topsrcdir)/configure
107 @echo "STOP! configure has changed and needs to be run in this build directory."
108 @echo "Please rerun configure."
109 @echo "To ignore this message, touch 'config.status' in the build directory,"
110 @echo "but your build might not succeed."
111 @exit 1
112
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
113 # Build pseudo-external modules first when export is explicitly called
114 export::
2416c34 @Mitch-1-2 Bug 645356 - Use pymake builtins. r=khuey
Mitch-1-2 authored
115 $(RM) -r $(DIST)/sdk
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
116 $(MAKE) -C config export
117 $(MAKE) tier_nspr
118
6205031 @bsmedberg Bug 466486 - Don't use a subshell to recurse over DIRS when DIRS is e…
bsmedberg authored
119 ifdef ENABLE_TESTS
120 # Additional makefile targets to call automated test suites
121 include $(topsrcdir)/testing/testsuite-targets.mk
122 endif
123
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
124 include $(topsrcdir)/config/rules.mk
125
126 distclean::
127 cat unallmakefiles | $(XARGS) rm -f
2416c34 @Mitch-1-2 Bug 645356 - Use pymake builtins. r=khuey
Mitch-1-2 authored
128 $(RM) unallmakefiles $(DIST_GARBAGE)
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
129
130 ifeq ($(OS_ARCH),WINNT)
96ad793 bug 378463 - build time logic to extract debug symbols on OS X. r=me…
ted.mielczarek@gmail.com authored
131 # we want to copy PDB files on Windows
6e6d670 @Mitch-1-2 Bug 462361 - Remove support for building with Cygwin. r=khuey
Mitch-1-2 authored
132 MAKE_SYM_STORE_ARGS := -c --vcs-info
cf32154 Bug 408134 - "Source Server for Windows builds integrated into symbol…
reed@reedloden.com authored
133 ifdef PDBSTR_PATH
134 MAKE_SYM_STORE_ARGS += -i
135 endif
1c84e95 bug 575519 - add a VC9-built dump_syms.exe, choose dump_syms based on…
Ted Mielczarek authored
136 DUMP_SYMS_BIN ?= $(topsrcdir)/toolkit/crashreporter/tools/win32/dump_syms_vc$(_MSC_VER).exe
c4f1d3f bug 383083 - post-process symbol files to add source file revision nu…
ted.mielczarek@gmail.com authored
137 # PDB files don't get moved to dist, so we need to scan the whole objdir
138 MAKE_SYM_STORE_PATH := .
96ad793 bug 378463 - build time logic to extract debug symbols on OS X. r=me…
ted.mielczarek@gmail.com authored
139 endif
140 ifeq ($(OS_ARCH),Darwin)
141 # need to pass arch flags for universal builds
142 ifdef UNIVERSAL_BINARY
f13c016 @nthomas-mozilla Bug 571367, turn production x86_64 builds into i386/x86_64 universal …
nthomas-mozilla authored
143 MAKE_SYM_STORE_ARGS := -c -a "i386 x86_64" --vcs-info
c4f1d3f bug 383083 - post-process symbol files to add source file revision nu…
ted.mielczarek@gmail.com authored
144 MAKE_SYM_STORE_PATH := $(DIST)/universal
96ad793 bug 378463 - build time logic to extract debug symbols on OS X. r=me…
ted.mielczarek@gmail.com authored
145 else
d9803ef bug 420474 - upload debug info for Linux and mac builds to symbol ser…
Ted Mielczarek authored
146 MAKE_SYM_STORE_ARGS := -c -a $(OS_TEST) --vcs-info
c4f1d3f bug 383083 - post-process symbol files to add source file revision nu…
ted.mielczarek@gmail.com authored
147 MAKE_SYM_STORE_PATH := $(DIST)/bin
96ad793 bug 378463 - build time logic to extract debug symbols on OS X. r=me…
ted.mielczarek@gmail.com authored
148 endif
394a83d Bug 390699 - "Let DUMP_SYMS_BIN be set from environment". r=luser, a=bz.
bent.mozilla@gmail.com authored
149 DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
96ad793 bug 378463 - build time logic to extract debug symbols on OS X. r=me…
ted.mielczarek@gmail.com authored
150 endif
429f53c Bug 391361. The integration of breakpad on Solaris. r=ted.mielczarek,…
alfred.peng@sun.com authored
151 ifeq (,$(filter-out Linux SunOS,$(OS_ARCH)))
d9803ef bug 420474 - upload debug info for Linux and mac builds to symbol ser…
Ted Mielczarek authored
152 MAKE_SYM_STORE_ARGS := -c --vcs-info
394a83d Bug 390699 - "Let DUMP_SYMS_BIN be set from environment". r=luser, a=bz.
bent.mozilla@gmail.com authored
153 DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
c4f1d3f bug 383083 - post-process symbol files to add source file revision nu…
ted.mielczarek@gmail.com authored
154 MAKE_SYM_STORE_PATH := $(DIST)/bin
9b3f288 bug 380541 - build time logic to extract debug symbols on Linux - fir…
ted.mielczarek@gmail.com authored
155 endif
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
156
b84c0c6 @gozer-mozillamessaging Bug 452866 - "Teach Socorro/crash-stats about comm-central - add supp…
gozer-mozillamessaging authored
157 SYM_STORE_SOURCE_DIRS := $(topsrcdir)
158
79405e8 bug 478221 - make 'make upload' upload symbols zip alongside build. r…
Ted Mielczarek authored
159 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
160
0106205 bug 382172 - allow env var for extra uniqueness in symbols.txt file. …
ted.mielczarek@gmail.com authored
161 ifdef MOZ_SYMBOLS_EXTRA_BUILDID
162 EXTRA_BUILDID := -$(MOZ_SYMBOLS_EXTRA_BUILDID)
163 endif
164
e193067 @jlebar Bug 609401 - Stop spamming "Section [Build] not found" to the termina…
jlebar authored
165 SYMBOL_INDEX_NAME = \
e230a19 bug 595171 - crashreporter glue for Android. r=blassey a=blocking-fennec
Ted Mielczarek authored
166 $(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_TARGET)-$(BUILDID)$(EXTRA_BUILDID)-symbols.txt
c66c7cf Bug 395407 - "Symbol upload and unpack can conflict if builds have th…
bent.mozilla@gmail.com authored
167
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
168 buildsymbols:
47628e8 bug 389548 - fixup from cvs copy (airbag -> crashreporter). also not…
ted.mielczarek@gmail.com authored
169 ifdef MOZ_CRASHREPORTER
c8b9ee7 @glandium Bug 637341 - Apply elfhack to dist/bin when packaging and when buildi…
glandium authored
170 ifdef USE_ELF_HACK
171 $(MAKE) -C $(MOZ_BUILD_APP)/installer elfhack
172 endif
21a0f59 bug 375110 - symbol upload tweak for better symbol store management. …
ted.mielczarek@gmail.com authored
173 echo building symbol store
2416c34 @Mitch-1-2 Bug 645356 - Use pymake builtins. r=khuey
Mitch-1-2 authored
174 $(RM) -r $(DIST)/crashreporter-symbols
175 $(RM) "$(DIST)/$(SYMBOL_ARCHIVE_BASENAME).zip"
3305b96 @bsmedberg Bug 481732 - Check for crash minidumps in unit tests and dump them, i…
bsmedberg authored
176 $(NSINSTALL) -D $(DIST)/crashreporter-symbols
b84c0c6 @gozer-mozillamessaging Bug 452866 - "Teach Socorro/crash-stats about comm-central - add supp…
gozer-mozillamessaging authored
177 $(PYTHON) $(topsrcdir)/toolkit/crashreporter/tools/symbolstore.py \
178 $(MAKE_SYM_STORE_ARGS) \
179 $(foreach dir,$(SYM_STORE_SOURCE_DIRS),-s $(dir)) \
180 $(DUMP_SYMS_BIN) \
3305b96 @bsmedberg Bug 481732 - Check for crash minidumps in unit tests and dump them, i…
bsmedberg authored
181 $(DIST)/crashreporter-symbols \
b84c0c6 @gozer-mozillamessaging Bug 452866 - "Teach Socorro/crash-stats about comm-central - add supp…
gozer-mozillamessaging authored
182 $(MAKE_SYM_STORE_PATH) > \
3305b96 @bsmedberg Bug 481732 - Check for crash minidumps in unit tests and dump them, i…
bsmedberg authored
183 $(DIST)/crashreporter-symbols/$(SYMBOL_INDEX_NAME)
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
184 echo packing symbols
d6b8638 @catlee Bug 457753: Ensure that the directory exists before zipping up crashr…
catlee authored
185 $(NSINSTALL) -D $(DIST)/$(PKG_PATH)
3305b96 @bsmedberg Bug 481732 - Check for crash minidumps in unit tests and dump them, i…
bsmedberg authored
186 cd $(DIST)/crashreporter-symbols && \
8afe967 @catlee bug 561419: Only upload breakpad symbols to FTP for now, to reduce lo…
catlee authored
187 zip -r9D "../$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip" .
188 cd $(DIST)/crashreporter-symbols && \
6f58f59 Bug 588129 - symbols.txt file missing from *.crashreporter-symbols.zi…
Wolfgang Rosenauer authored
189 grep "sym" $(SYMBOL_INDEX_NAME) > $(SYMBOL_INDEX_NAME).tmp && \
190 mv $(SYMBOL_INDEX_NAME).tmp $(SYMBOL_INDEX_NAME)
191 cd $(DIST)/crashreporter-symbols && \
192 zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" . -i "*.sym" -i "*.txt"
47628e8 bug 389548 - fixup from cvs copy (airbag -> crashreporter). also not…
ted.mielczarek@gmail.com authored
193 endif # MOZ_CRASHREPORTER
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
194
195 uploadsymbols:
47628e8 bug 389548 - fixup from cvs copy (airbag -> crashreporter). also not…
ted.mielczarek@gmail.com authored
196 ifdef MOZ_CRASHREPORTER
e193067 @jlebar Bug 609401 - Stop spamming "Section [Build] not found" to the termina…
jlebar authored
197 $(SHELL) $(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh $(SYMBOL_INDEX_NAME) "$(DIST)/$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip"
465265d Free the (distributed) Lizard! Automatic merge from CVS: Module mozil…
hg@mozilla.com authored
198 endif
199
5cff32a bug 659950 - implement a much simpler pair of codesize metrics: on-di…
Ted Mielczarek authored
200 codesighs:
201 $(MAKE) -C $(MOZ_BUILD_APP)/installer codesighs
202
451482a bug 474610 - generate a text file alongside application packages that…
Ted Mielczarek authored
203 # defined in package-name.mk
177f1ca @gijsk Bug 515792 - use hg parent, as few times as possible, rather than lot…
gijsk authored
204 export MOZ_SOURCE_STAMP
205
f7933e7 bug 361343 - make profiledbuild work on windows. r=bsmedberg
ted.mielczarek@gmail.com authored
206 #XXX: this is a hack, since we don't want to clobber for MSVC
207 # PGO support, but we can't do this test in client.mk
208 ifneq ($(OS_ARCH)_$(GNU_CC), WINNT_)
d143c68 bug 419348 - build config fixes for profile-guided optimization on ma…
ted.mielczarek@gmail.com authored
209 # No point in clobbering if PGO has been explicitly disabled.
210 ifndef NO_PROFILE_GUIDED_OPTIMIZE
efb8e01 Bug 520704 - "Build problems with libffi and PGO" [r=ted]
Bill Lancashire authored
211 maybe_clobber_profiledbuild: clean
f7933e7 bug 361343 - make profiledbuild work on windows. r=bsmedberg
ted.mielczarek@gmail.com authored
212 else
213 maybe_clobber_profiledbuild:
214 endif
d143c68 bug 419348 - build config fixes for profile-guided optimization on ma…
ted.mielczarek@gmail.com authored
215 else
216 maybe_clobber_profiledbuild:
217 endif
f7933e7 bug 361343 - make profiledbuild work on windows. r=bsmedberg
ted.mielczarek@gmail.com authored
218
219 .PHONY: maybe_clobber_profiledbuild
743fe13 @bsmedberg Bug 388971 - Add unit test to check for R_386_PC32 relocations, patch…
bsmedberg authored
220
221 # Look for R_386_PC32 relocations in shared libs, these
222 # break x86_64 builds and SELinux users.
223 ifeq ($(OS_TARGET)_$(TARGET_XPCOM_ABI),Linux_x86-gcc3)
224 scheck::
225 @relcount=`find $(DIST)/bin -name "*.so" | xargs objdump -R | grep R_386_PC32 | wc -l` && if test $$relcount -gt 0; then echo "FAILED: R_386_PC32 relocations detected in a shared library. Did you use a system header without adding it to config/system-headers?"; exit 1; else echo "PASSED"; fi
226 endif
Something went wrong with that request. Please try again.