Bug 591969: Fix feed reader UI in aero. r=gavin a=blocker
[mozilla-central.git] / Makefile.in
blobc6ca3c991d6de0c0db7cb93df24e0d5e21cf2af9
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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.
15 # The Original Code is mozilla.org code.
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.
22 # Contributor(s):
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.
36 # ***** END LICENSE BLOCK *****
38 DEPTH = .
39 topsrcdir = @top_srcdir@
40 srcdir = @srcdir@
41 VPATH = @srcdir@
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
52 include $(DEPTH)/config/autoconf.mk
54 default::
56 TIERS += base
59 # tier "base" - basic setup
61 tier_base_dirs = \
62 config \
63 build \
64 probes \
65 $(NULL)
67 ifndef LIBXUL_SDK
68 tier_base_dirs += \
69 memory \
70 $(NULL)
71 endif
73 ifdef COMPILE_ENVIRONMENT
74 include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
75 endif
78 include $(topsrcdir)/config/config.mk
80 GARBAGE_DIRS += dist _javagen _profile _tests staticlib
81 DIST_GARBAGE = config.cache config.log config.status config-defs.h \
82 dependencies.beos config/autoconf.mk \
83 unallmakefiles mozilla-config.h \
84 netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
85 $(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
87 ifdef WINCE
88 check::
89 $(PYTHON) $(topsrcdir)/build/mobile/devicemanager-utils.py copy $(DIST)/bin
90 endif
92 default alldep all:: $(topsrcdir)/configure config.status
93 $(RM) -rf $(DIST)/sdk
94 $(RM) -rf $(DIST)/include
95 $(RM) -rf $(DIST)/private
96 $(RM) -rf $(DIST)/public
97 $(RM) -rf $(DIST)/bin/components
98 $(RM) -rf _tests
100 $(topsrcdir)/configure: $(topsrcdir)/configure.in
101 @echo "STOP! configure.in has changed, and your configure is out of date."
102 @echo "Please rerun autoconf and re-configure your build directory."
103 @echo "To ignore this message, touch 'configure' in the source directory,"
104 @echo "but your build might not succeed."
105 @exit 1
107 config.status: $(topsrcdir)/configure
108 @echo "STOP! configure has changed and needs to be run in this build directory."
109 @echo "Please rerun configure."
110 @echo "To ignore this message, touch 'config.status' in the build directory,"
111 @echo "but your build might not succeed."
112 @exit 1
114 # Build pseudo-external modules first when export is explicitly called
115 export::
116 $(RM) -rf $(DIST)/sdk
117 $(MAKE) -C config export
118 $(MAKE) tier_nspr
120 ifdef ENABLE_TESTS
121 # Additional makefile targets to call automated test suites
122 include $(topsrcdir)/testing/testsuite-targets.mk
123 else
124 # OS X Universal builds will want to call this, so stub it out
125 package-tests:
126 endif
128 include $(topsrcdir)/config/rules.mk
130 distclean::
131 cat unallmakefiles | $(XARGS) rm -f
132 rm -f unallmakefiles $(DIST_GARBAGE)
134 ifeq ($(OS_ARCH),WINNT)
135 # we want to copy PDB files on Windows
136 MAKE_SYM_STORE_ARGS := -c
137 ifdef PDBSTR_PATH
138 MAKE_SYM_STORE_ARGS += -i
139 endif
140 ifeq (,$(CYGWIN_WRAPPER))
141 # this doesn't work with Cygwin Python
142 MAKE_SYM_STORE_ARGS += --vcs-info
143 endif
144 DUMP_SYMS_BIN ?= $(topsrcdir)/toolkit/crashreporter/tools/win32/dump_syms.exe
145 # PDB files don't get moved to dist, so we need to scan the whole objdir
146 MAKE_SYM_STORE_PATH := .
147 endif
148 ifeq ($(OS_ARCH),Darwin)
149 # need to pass arch flags for universal builds
150 ifdef UNIVERSAL_BINARY
151 MAKE_SYM_STORE_ARGS := -c -a "ppc i386" --vcs-info
152 MAKE_SYM_STORE_PATH := $(DIST)/universal
153 else
154 MAKE_SYM_STORE_ARGS := -c -a $(OS_TEST) --vcs-info
155 MAKE_SYM_STORE_PATH := $(DIST)/bin
156 endif
157 DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
158 endif
159 ifeq (,$(filter-out Linux SunOS,$(OS_ARCH)))
160 MAKE_SYM_STORE_ARGS := -c --vcs-info
161 DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
162 MAKE_SYM_STORE_PATH := $(DIST)/bin
163 endif
165 SYM_STORE_SOURCE_DIRS := $(topsrcdir)
167 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
169 ifdef MOZ_SYMBOLS_EXTRA_BUILDID
170 EXTRA_BUILDID := -$(MOZ_SYMBOLS_EXTRA_BUILDID)
171 endif
173 SYMBOL_INDEX_NAME = \
174 $(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_ARCH)-$(BUILDID)$(EXTRA_BUILDID)-symbols.txt
176 buildsymbols:
177 ifdef MOZ_CRASHREPORTER
178 echo building symbol store
179 $(RM) -rf $(DIST)/crashreporter-symbols
180 $(RM) -f "$(DIST)/$(SYMBOL_ARCHIVE_BASENAME).zip"
181 $(NSINSTALL) -D $(DIST)/crashreporter-symbols
182 $(PYTHON) $(topsrcdir)/toolkit/crashreporter/tools/symbolstore.py \
183 $(MAKE_SYM_STORE_ARGS) \
184 $(foreach dir,$(SYM_STORE_SOURCE_DIRS),-s $(dir)) \
185 $(DUMP_SYMS_BIN) \
186 $(DIST)/crashreporter-symbols \
187 $(MAKE_SYM_STORE_PATH) > \
188 $(DIST)/crashreporter-symbols/$(SYMBOL_INDEX_NAME)
189 echo packing symbols
190 $(NSINSTALL) -D $(DIST)/$(PKG_PATH)
191 cd $(DIST)/crashreporter-symbols && \
192 zip -r9D "../$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip" .
193 cd $(DIST)/crashreporter-symbols && \
194 zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" . -i "*.sym"
195 else
196 ifdef WINCE
197 ifdef SYMBOLSTORE_PATH
198 echo building symbol store with symstore.exe
199 $(RM) -rf $(DIST)/symbols
200 $(RM) -f "$(DIST)/$(SYMBOL_ARCHIVE_BASENAME).zip"
201 $(NSINSTALL) -D $(DIST)/symbols
202 $(SYMBOLSTORE_PATH) add -r -f "$(subst /,\,$(shell pwd -W))\*.PDB" \
203 -s $(DIST)/symbols/ -t "$(MOZ_PKG_APPNAME)" -v "$(MOZ_PKG_VERSION)"
204 echo packing symbols
205 $(NSINSTALL) -D $(DIST)/$(PKG_PATH)
206 cd $(DIST)/symbols && \
207 zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" .
208 endif # SYMBOLSTORE_PATH
209 endif # WINCE
210 endif # MOZ_CRASHREPORTER
212 uploadsymbols:
213 ifdef MOZ_CRASHREPORTER
214 $(SHELL) $(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh "$(DIST)/$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip"
215 endif
217 # defined in package-name.mk
218 export MOZ_SOURCE_STAMP
220 #XXX: this is a hack, since we don't want to clobber for MSVC
221 # PGO support, but we can't do this test in client.mk
222 ifneq ($(OS_ARCH)_$(GNU_CC), WINNT_)
223 # No point in clobbering if PGO has been explicitly disabled.
224 ifndef NO_PROFILE_GUIDED_OPTIMIZE
225 maybe_clobber_profiledbuild: clean
226 else
227 maybe_clobber_profiledbuild:
228 endif
229 else
230 maybe_clobber_profiledbuild:
231 endif
233 .PHONY: maybe_clobber_profiledbuild