1 # vim:set ts=8 sw=8 sts=8 noet:
3 # ***** BEGIN LICENSE BLOCK *****
4 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 # The contents of this file are subject to the Mozilla Public License Version
7 # 1.1 (the "License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an "AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 # for the specific language governing rights and limitations under the
16 # The Original Code is mozilla.org code.
18 # The Initial Developer of the Original Code is
19 # Netscape Communications Corporation.
20 # Portions created by the Initial Developer are Copyright (C) 1998
21 # the Initial Developer. All Rights Reserved.
24 # Chase Phillips <chase@mozilla.org>
25 # Benjamin Smedberg <benjamin@smedbergs.us>
26 # Jeff Walden <jwalden+code@mit.edu>
28 # Alternatively, the contents of this file may be used under the terms of
29 # either of the GNU General Public License Version 2 or later (the "GPL"),
30 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
31 # in which case the provisions of the GPL or the LGPL are applicable instead
32 # of those above. If you wish to allow use of your version of this file only
33 # under the terms of either the GPL or the LGPL, and not to allow others to
34 # use your version of this file under the terms of the MPL, indicate your
35 # decision by deleting the provisions above and replace them with the notice
36 # and other provisions required by the GPL or the LGPL. If you do not delete
37 # the provisions above, a recipient may use your version of this file under
38 # the terms of any one of the MPL, the GPL or the LGPL.
40 # ***** END LICENSE BLOCK *****
46 MOZILLA_DIR
= $(topsrcdir
)
49 ifndef INCLUDED_CONFIG_MK
50 include $(topsrcdir
)/config
/config.mk
53 ifndef INCLUDED_VERSION_MK
54 include $(topsrcdir
)/config
/version.mk
57 REPORT_BUILD
= @echo
$(notdir $<)
65 # ELOG prints out failed command when building silently (gmake -s).
66 ifneq (,$(findstring -s
,$(MAKEFLAGS
)))
67 ELOG
:= $(EXEC
) sh
$(BUILD_TOOLS
)/print-failed-commands.sh
72 ifeq (,$(filter-out WINNT WINCE
,$(OS_ARCH
)))
74 _LIBNAME_RELATIVE_PATHS
=1
78 ifeq (,$(filter-out WINNT WINCE
,$(OS_ARCH
)))
80 _VPATH_SRCS
= $(if
$(filter /%,$<),$<,$(PWD
)/$<)
85 # Add $(DIST)/lib to VPATH so that -lfoo dependencies are followed
88 VPATH
+= $(LIBXUL_SDK
)/lib
91 # EXPAND_LIBNAME - $(call EXPAND_LIBNAME,foo)
92 # expands to foo.lib on platforms with import libs and -lfoo otherwise
94 # EXPAND_LIBNAME_PATH - $(call EXPAND_LIBNAME_PATH,foo,dir)
95 # expands to dir/foo.lib on platforms with import libs and
96 # -Ldir -lfoo otherwise
98 # EXPAND_MOZLIBNAME - $(call EXPAND_MOZLIBNAME,foo)
99 # expands to $(DIST)/lib/foo.lib on platforms with import libs and
102 ifdef _LIBNAME_RELATIVE_PATHS
103 EXPAND_LIBNAME
= $(foreach lib
,$(1),$(LIB_PREFIX
)$(lib
).
$(LIB_SUFFIX
))
104 EXPAND_LIBNAME_PATH
= $(foreach lib
,$(1),$(2)/$(LIB_PREFIX
)$(lib
).
$(LIB_SUFFIX
))
105 EXPAND_MOZLIBNAME
= $(foreach lib
,$(1),$(DIST
)/lib
/$(LIB_PREFIX
)$(lib
).
$(LIB_SUFFIX
))
107 EXPAND_LIBNAME
= $(addprefix -l
,$(1))
108 EXPAND_LIBNAME_PATH
= -L
$(2) $(addprefix -l
,$(1))
109 EXPAND_MOZLIBNAME
= $(addprefix -l
,$(1))
113 EXTRA_DSO_LIBS
:= $(call EXPAND_MOZLIBNAME
,$(EXTRA_DSO_LIBS
))
119 # If BUILD_STATIC_LIBS or FORCE_STATIC_LIB is set, build a static library.
120 # Otherwise, build a shared library.
125 ifneq (,$(filter OS2 WINNT WINCE
,$(OS_ARCH
)))
127 LIBRARY_NAME
:= $(SHORT_LIBNAME
)
130 LIBRARY
:= $(LIB_PREFIX
)$(LIBRARY_NAME
).
$(LIB_SUFFIX
)
135 ifdef HOST_LIBRARY_NAME
136 HOST_LIBRARY
:= $(LIB_PREFIX
)$(HOST_LIBRARY_NAME
).
$(LIB_SUFFIX
)
141 ifneq (_1
,$(FORCE_SHARED_LIB
)_
$(BUILD_STATIC_LIBS
))
145 MKSHLIB
= $(MKCSHLIB
)
149 SHARED_LIBRARY
:= $(LIBRARY_NAME
)
151 SHARED_LIBRARY
:= $(DLL_PREFIX
)$(LIBRARY_NAME
)$(DLL_SUFFIX
)
154 ifeq ($(OS_ARCH
),OS2
)
155 DEF_FILE
:= $(SHARED_LIBRARY
:.dll
=.def
)
158 ifneq (,$(filter OS2 WINNT WINCE
,$(OS_ARCH
)))
159 IMPORT_LIBRARY
:= $(LIB_PREFIX
)$(LIBRARY_NAME
).
$(IMPORT_LIB_SUFFIX
)
162 ifdef MOZ_ENABLE_LIBXUL
167 endif # FORCE_SHARED_LIB && !BUILD_STATIC_LIBS
170 ifeq (,$(BUILD_STATIC_LIBS
)$(FORCE_STATIC_LIB
))
174 ifeq (_1
,$(FORCE_SHARED_LIB
)_
$(BUILD_STATIC_LIBS
))
175 SHARED_LIBRARY
:= $(NULL
)
177 IMPORT_LIBRARY
:= $(NULL
)
180 ifdef FORCE_STATIC_LIB
181 ifndef FORCE_SHARED_LIB
182 SHARED_LIBRARY
:= $(NULL
)
184 IMPORT_LIBRARY
:= $(NULL
)
188 ifdef FORCE_SHARED_LIB
189 ifndef FORCE_STATIC_LIB
194 ifdef JAVA_LIBRARY_NAME
195 JAVA_LIBRARY
:= $(JAVA_LIBRARY_NAME
).jar
198 ifeq (,$(filter-out WINNT WINCE
,$(OS_ARCH
)))
201 # Previously when possible we wrote to $LIBRARY_NAME.pdb. This broke parallel
202 # make builds on Windows. Now we just write to a pdb file per compiled file.
203 # See bug 286179 <https://bugzilla.mozilla.org/show_bug.cgi?id=286179> for
204 # details. -- chase@mozilla.org
206 # Changes to the PDBFILE naming scheme should also be reflected in HOST_PDBFILE
209 PDBFILE
=$(LIBRARY_NAME
).pdb
211 CODFILE
=$(LIBRARY_NAME
).cod
214 PDBFILE
=$(basename $(@F
)).pdb
216 CODFILE
=$(basename $(@F
)).cod
222 MAPFILE
=$(LIBRARY_NAME
).map
224 MAPFILE
=$(basename $(@F
)).map
229 OS_LDFLAGS
+= -DEF
:$(DEFFILE
)
230 EXTRA_DEPS
+= $(DEFFILE
)
234 OS_LDFLAGS
+= -MAP
:$(MAPFILE
)
235 #CFLAGS += -Fm$(MAPFILE)
236 #CXXFLAGS += -Fm$(MAPFILE)
240 #CFLAGS += -Fa$(CODFILE) -FAsc
241 #CFLAGS += -Fa$(CODFILE) -FAsc
246 ifdef ENABLE_CXX_EXCEPTIONS
248 CXXFLAGS
+= -fexceptions
250 ifeq (,$(filter-out 1200 1300 1310,$(_MSC_VER
)))
256 endif # ENABLE_CXX_EXCEPTIONS
259 ifeq (,$(filter-out WINNT WINCE
,$(HOST_OS_ARCH
)))
260 HOST_PDBFILE
=$(basename $(@F
)).pdb
264 TARGETS
= $(LIBRARY
) $(SHARED_LIBRARY
) $(PROGRAM
) $(SIMPLE_PROGRAMS
) $(HOST_LIBRARY
) $(HOST_PROGRAM
) $(HOST_SIMPLE_PROGRAMS
) $(JAVA_LIBRARY
)
270 $(addsuffix .
$(OBJ_SUFFIX
), $(JMC_GEN
)) \
271 $(CSRCS
:.c
=.
$(OBJ_SUFFIX
)) \
272 $(patsubst %.
cc,%.
$(OBJ_SUFFIX
),$(CPPSRCS
:.
cpp=.
$(OBJ_SUFFIX
))) \
273 $(CMSRCS
:.m
=.
$(OBJ_SUFFIX
)) \
274 $(CMMSRCS
:.mm
=.
$(OBJ_SUFFIX
)) \
275 $(ASFILES
:.
$(ASM_SUFFIX
)=.
$(OBJ_SUFFIX
))
276 OBJS
= $(strip $(_OBJS
))
281 $(addprefix host_
,$(HOST_CSRCS
:.c
=.
$(OBJ_SUFFIX
))) \
282 $(addprefix host_
,$(patsubst %.
cc,%.
$(OBJ_SUFFIX
),$(HOST_CPPSRCS
:.
cpp=.
$(OBJ_SUFFIX
)))) \
283 $(addprefix host_
,$(HOST_CMSRCS
:.m
=.
$(OBJ_SUFFIX
))) \
284 $(addprefix host_
,$(HOST_CMMSRCS
:.mm
=.
$(OBJ_SUFFIX
)))
285 HOST_OBJS
= $(strip $(_HOST_OBJS
))
288 LIBOBJS
:= $(addprefix \", $(OBJS
))
289 LIBOBJS
:= $(addsuffix \", $(LIBOBJS
))
292 ifneq (,$(OBJS
)$(XPIDLSRCS
)$(SDK_XPIDLSRCS
)$(SIMPLE_PROGRAMS
))
293 MDDEPFILES
= $(addprefix $(MDDEPDIR
)/,$(OBJS
:.
$(OBJ_SUFFIX
)=.pp
))
295 MDDEPFILES
+= $(addprefix $(MDDEPDIR
)/,$(XPIDLSRCS
:.idl
=.xpt
)) \
296 $(addprefix $(MDDEPDIR
)/,$(SDK_XPIDLSRCS
:.idl
=.xpt
))
302 $(GARBAGE
) $(TARGETS
) $(OBJS
) $(PROGOBJS
) LOGS TAGS a.out \
303 $(filter-out $(ASFILES
),$(OBJS
:.
$(OBJ_SUFFIX
)=.s
)) $(OBJS
:.
$(OBJ_SUFFIX
)=.ii
) \
304 $(OBJS
:.
$(OBJ_SUFFIX
)=.i
) \
305 $(HOST_PROGOBJS
) $(HOST_OBJS
) $(IMPORT_LIBRARY
) $(DEF_FILE
)\
306 $(EXE_DEF_FILE
) so_locations _gen _stubs
$(wildcard *.res
) $(wildcard *.RES
) \
307 $(wildcard *.pdb
) $(CODFILE
) $(MAPFILE
) $(IMPORT_LIBRARY
) \
308 $(SHARED_LIBRARY
:$(DLL_SUFFIX
)=.exp
) $(wildcard *.ilk
) \
309 $(PROGRAM
:$(BIN_SUFFIX
)=.exp
) $(SIMPLE_PROGRAMS
:$(BIN_SUFFIX
)=.exp
) \
310 $(PROGRAM
:$(BIN_SUFFIX
)=.lib
) $(SIMPLE_PROGRAMS
:$(BIN_SUFFIX
)=.lib
) \
311 $(SIMPLE_PROGRAMS
:$(BIN_SUFFIX
)=.
$(OBJ_SUFFIX
)) \
312 $(wildcard gts_tmp_
*) $(LIBRARY
:%.a
=.
%.timestamp
)
314 $(GARBAGE_DIRS
) /no-such-file
317 GARBAGE
+= $(MOCSRCS
)
320 ifdef SIMPLE_PROGRAMS
321 GARBAGE
+= $(SIMPLE_PROGRAMS
:%=%.
$(OBJ_SUFFIX
))
324 ifdef HOST_SIMPLE_PROGRAMS
325 GARBAGE
+= $(HOST_SIMPLE_PROGRAMS
:%=%.
$(OBJ_SUFFIX
))
329 # the Solaris WorkShop template repository cache. it occasionally can get
330 # out of sync, so targets like clobber should kill it.
332 ifeq ($(OS_ARCH
),SunOS
)
334 GARBAGE_DIRS
+= SunWS_cache
338 ifeq ($(OS_ARCH
),OpenVMS
)
339 GARBAGE
+= $(wildcard *.
*_defines
)
341 VMS_SYMVEC_FILE
= $(SHARED_LIBRARY
:$(DLL_SUFFIX
)=_symvec.opt
)
343 VMS_SYMVEC_FILE_MODULE
= $(topsrcdir
)/build
/unix
/vms
/$(notdir $(SHARED_LIBRARY
:$(DLL_SUFFIX
)=_dbg_symvec.opt
))
345 VMS_SYMVEC_FILE_MODULE
= $(topsrcdir
)/build
/unix
/vms
/$(notdir $(SHARED_LIBRARY
:$(DLL_SUFFIX
)=_symvec.opt
))
347 VMS_SYMVEC_FILE_COMP
= $(topsrcdir
)/build
/unix
/vms
/component_symvec.opt
348 GARBAGE
+= $(VMS_SYMVEC_FILE
)
350 DSO_LDOPTS
:= $(filter-out -auto_symvec
,$(DSO_LDOPTS
)) $(VMS_SYMVEC_FILE
)
355 XPIDL_GEN_DIR
= _xpidlgen
357 ifdef MOZ_UPDATE_XTERM
358 # Its good not to have a newline at the end of the titlebar string because it
359 # makes the make -s output easier to read. Echo -n does not work on all
360 # platforms, but we can trick sed into doing it.
361 UPDATE_TITLE
= sed
-e
"s!Y!$@ in $(shell $(BUILD_TOOLS)/print-depth-path.sh)/$(dir)!" $(MOZILLA_DIR
)/config
/xterm.str
;
366 $(foreach dir,$(DIRS
),$(UPDATE_TITLE
) $(MAKE
) -C
$(dir) $@
; ) true
368 LOOP_OVER_STATIC_DIRS
= \
370 $(foreach dir,$(STATIC_DIRS
),$(UPDATE_TITLE
) $(MAKE
) -C
$(dir) $@
; ) true
372 LOOP_OVER_TOOL_DIRS
= \
374 $(foreach dir,$(TOOL_DIRS
),$(UPDATE_TITLE
) $(MAKE
) -C
$(dir) $@
; ) true
377 # Now we can differentiate between objects used to build a library, and
378 # objects used to build an executable in the same directory.
385 HOST_PROGOBJS
= $(HOST_OBJS
)
388 # MAKE_DIRS: List of directories to build while looping over directories.
389 ifneq (,$(OBJS
)$(XPIDLSRCS
)$(SDK_XPIDLSRCS
)$(SIMPLE_PROGRAMS
))
390 MAKE_DIRS
+= $(MDDEPDIR
)
391 GARBAGE_DIRS
+= $(MDDEPDIR
)
395 # Tags: emacs (etags), vi (ctags)
396 # TAG_PROGRAM := ctags -L -
398 TAG_PROGRAM
= xargs etags
-a
401 # Turn on C++ linking if we have any .cpp or .mm files
402 # (moved this from config.mk so that config.mk can be included
403 # before the CPPSRCS are defined)
405 ifneq ($(CPPSRCS
)$(CMMSRCS
),)
410 # Make sure to wrap static libs inside linker specific flags to turn on & off
411 # inclusion of all symbols inside the static libs
413 ifndef NO_LD_ARCHIVE_FLAGS
414 ifdef SHARED_LIBRARY_LIBS
415 EXTRA_DSO_LDOPTS
:= $(MKSHLIB_FORCE_ALL
) $(SHARED_LIBRARY_LIBS
) $(MKSHLIB_UNFORCE_ALL
) $(EXTRA_DSO_LDOPTS
)
420 # This will strip out symbols that the component should not be
421 # exporting from the .dynsym section.
424 EXTRA_DSO_LDOPTS
+= $(MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS
)
428 # Enforce the requirement that MODULE_NAME must be set
429 # for components in static builds
433 ifndef FORCE_SHARED_LIB
435 $(error MODULE_NAME is required for components which may be used in static builds
)
442 # MacOS X specific stuff
445 ifeq ($(OS_ARCH
),Darwin
)
448 EXTRA_DSO_LDOPTS
+= -bundle
450 EXTRA_DSO_LDOPTS
+= -dynamiclib
-install_name @executable_path
/$(SHARED_LIBRARY
) -compatibility_version
1 -current_version
1 -single_module
456 # On NetBSD a.out systems, use -Bsymbolic. This fixes what would otherwise be
457 # fatal symbol name clashes between components.
459 ifeq ($(OS_ARCH
),NetBSD
)
460 ifeq ($(DLL_SUFFIX
),.so
.1.0)
462 EXTRA_DSO_LDOPTS
+= -Wl
,-Bsymbolic
467 ifeq ($(OS_ARCH
),FreeBSD
)
469 EXTRA_DSO_LDOPTS
+= -Wl
,-Bsymbolic
473 ifeq ($(OS_ARCH
),NetBSD
)
474 ifneq (,$(filter arc cobalt hpcmips mipsco newsmips pmax sgimips
,$(OS_TEST
)))
475 ifeq ($(MODULE
),layout
)
476 OS_CFLAGS
+= -Wa
,-xgot
477 OS_CXXFLAGS
+= -Wa
,-xgot
482 ifeq ($(OS_ARCH
),Linux
)
483 ifneq (,$(filter mips mipsel
,$(OS_TEST
)))
484 ifeq ($(MODULE
),layout
)
485 OS_CFLAGS
+= -Wa
,-xgot
486 OS_CXXFLAGS
+= -Wa
,-xgot
492 # HP-UXBeOS specific section: for COMPONENTS only, add -Bsymbolic flag
493 # which uses internal symbols first
495 ifeq ($(OS_ARCH
),HP-UX
)
497 ifeq ($(GNU_CC
)$(GNU_CXX
),)
498 EXTRA_DSO_LDOPTS
+= -Wl
,-Bsymbolic
499 ifneq ($(HAS_EXTRAEXPORTS
),1)
500 MKSHLIB
+= -Wl
,+eNSGetModule
-Wl
,+eerrno
501 MKCSHLIB
+= +eNSGetModule
+eerrno
502 ifneq ($(OS_TEST
),ia64
)
503 MKSHLIB
+= -Wl
,+e_shlInit
504 MKCSHLIB
+= +e_shlInit
506 endif # !HAS_EXTRAEXPORTS
507 endif # non-gnu compilers
511 ifeq ($(OS_ARCH
),AIX
)
513 ifneq ($(HAS_EXTRAEXPORTS
),1)
514 MKSHLIB
+= -bE
:$(MOZILLA_DIR
)/build
/unix
/aix.exp
-bnoexpall
515 MKCSHLIB
+= -bE
:$(MOZILLA_DIR
)/build
/unix
/aix.exp
-bnoexpall
516 endif # HAS_EXTRAEXPORTS
521 # OSF1: add -B symbolic flag for components
523 ifeq ($(OS_ARCH
),OSF1
)
525 ifeq ($(GNU_CC
)$(GNU_CXX
),)
526 EXTRA_DSO_LDOPTS
+= -B symbolic
532 # Linux: add -Bsymbolic flag for components
534 ifeq ($(OS_ARCH
),Linux
)
536 EXTRA_DSO_LDOPTS
+= -Wl
,-Bsymbolic
543 ifeq ($(OS_ARCH
),WINNT
)
546 DSO_LDOPTS
+= -Wl
,--out-implib
-Wl
,$(IMPORT_LIBRARY
)
559 ifeq (_WINNT
,$(GNU_CC
)_
$(OS_ARCH
))
563 endif # WINNT && !GNU_CC
564 ifneq (,$(filter WINCE
,$(OS_ARCH
)))
568 ifeq ($(OS_TARGET
), WINCE
)
570 HOST_OUTOPTION
= -Fo
# eol
573 ifeq (,$(CROSS_COMPILE
))
574 HOST_OUTOPTION
= $(OUTOPTION
)
576 HOST_OUTOPTION
= -o
# eol
580 ################################################################################
582 # SUBMAKEFILES: List of Makefiles for next level down.
583 # This is used to update or create the Makefiles before invoking them.
584 SUBMAKEFILES
+= $(addsuffix /Makefile
, $(DIRS
) $(TOOL_DIRS
))
586 # The root makefile doesn't want to do a plain export/libs, because
587 # of the tiers and because of libxul. Suppress the default rules in favor
588 # of something else. Makefiles which use this var *must* provide a sensible
589 # default rule before including rules.mk
590 ifndef SUPPRESS_DEFAULT_RULES
593 DIRS
+= $(foreach tier
,$(TIERS
),$(tier_
$(tier
)_dirs
))
594 STATIC_DIRS
+= $(foreach tier
,$(TIERS
),$(tier_
$(tier
)_staticdirs
))
598 $(foreach tier
,$(TIERS
),$(MAKE
) tier_
$(tier
); ) true
604 $(foreach dir,$(STATIC_DIRS
),$(MAKE
) -C
$(dir); ) true
617 endif # SUPPRESS_DEFAULT_RULES
619 ifeq ($(filter s
,$(MAKEFLAGS
)),)
627 MAKE_TIER_SUBMAKEFILES
= +$(if
$(tier_
$*_dirs
),$(MAKE
) $(addsuffix /Makefile
,$(tier_
$*_dirs
)))
631 @
$(MAKE_TIER_SUBMAKEFILES
)
633 $(foreach dir,$(tier_
$*_dirs
),$(MAKE
) -C
$(dir) export; ) true
637 @
$(MAKE_TIER_SUBMAKEFILES
)
639 $(foreach dir,$(tier_
$*_dirs
),$(MAKE
) -C
$(dir) libs
; ) true
643 @
$(MAKE_TIER_SUBMAKEFILES
)
645 $(foreach dir,$(tier_
$*_dirs
),$(MAKE
) -C
$(dir) tools
; ) true
647 $(foreach tier
,$(TIERS
),tier_
$(tier
))::
648 @
$(ECHO
) "$@: $($@_staticdirs) $($@_dirs)"
650 $(foreach dir,$($@_staticdirs
),$(MAKE
) -C
$(dir); ) true
654 # Do everything from scratch
659 # Add dummy depend target for tinderboxes
663 all_platforms
:: $(NFSPWD
)
665 if
test ! -d LOGS
; then
rm -rf LOGS
; mkdir LOGS
; else true
; fi
; \
666 for h in
$(PLATFORM_HOSTS
); do \
667 echo
"On $$h: $(MAKE) $(ALL_PLATFORMS) >& LOGS/$$h.log";\
668 rsh
$$h -n
"(chdir $$d; \
669 $(MAKE) $(ALL_PLATFORMS) >& LOGS/$$h.log; \
670 echo DONE) &" 2>&1 > LOGS
/$$h.pid
& \
675 cd
$(@D
); $(MAKE
) $(@F
)
678 # Target to only regenerate makefiles
679 makefiles
: $(SUBMAKEFILES
)
680 ifneq (,$(DIRS
)$(TOOL_DIRS
))
682 +$(LOOP_OVER_TOOL_DIRS
)
685 export:: $(SUBMAKEFILES
) $(MAKE_DIRS
) $(if
$(EXPORTS
)$(XPIDLSRCS
)$(SDK_HEADERS
)$(SDK_XPIDLSRCS
),$(PUBLIC
)) $(if
$(SDK_HEADERS
)$(SDK_XPIDLSRCS
),$(SDK_PUBLIC
)) $(if
$(XPIDLSRCS
),$(IDL_DIR
)) $(if
$(SDK_XPIDLSRCS
),$(SDK_IDL_DIR
))
687 +$(LOOP_OVER_TOOL_DIRS
)
689 tools
:: $(SUBMAKEFILES
) $(MAKE_DIRS
)
693 $(foreach dir,$(TOOL_DIRS
),$(UPDATE_TITLE
) $(MAKE
) -C
$(dir) libs
; ) true
697 # Rule to create list of libraries for final link
703 ifdef BUILD_STATIC_LIBS
704 @
$(PERL
) -I
$(MOZILLA_DIR
)/config
$(MOZILLA_DIR
)/config
/build-list.pl
$(FINAL_LINK_COMPS
) $(LIBRARY_NAME
)
706 @
$(PERL
) -I
$(MOZILLA_DIR
)/config
$(MOZILLA_DIR
)/config
/build-list.pl
$(FINAL_LINK_COMP_NAMES
) $(MODULE_NAME
)
710 $(PERL
) -I
$(MOZILLA_DIR
)/config
$(MOZILLA_DIR
)/config
/build-list.pl
$(FINAL_LINK_LIBS
) $(LIBRARY_NAME
)
712 endif # EXPORT_LIBRARY
715 # Create dependencies on static (and shared EXTRA_DSO_LIBS) libraries
716 LIBS_DEPS
= $(filter %.
$(LIB_SUFFIX
), $(LIBS
))
717 HOST_LIBS_DEPS
= $(filter %.
$(LIB_SUFFIX
), $(HOST_LIBS
))
718 DSO_LDOPTS_DEPS
= $(EXTRA_DSO_LIBS
) $(filter %.
$(LIB_SUFFIX
), $(EXTRA_DSO_LDOPTS
))
720 ##############################################
721 libs
:: $(SUBMAKEFILES
) $(MAKE_DIRS
) $(HOST_LIBRARY
) $(LIBRARY
) $(SHARED_LIBRARY
) $(IMPORT_LIBRARY
) $(HOST_PROGRAM
) $(PROGRAM
) $(HOST_SIMPLE_PROGRAMS
) $(SIMPLE_PROGRAMS
) $(JAVA_LIBRARY
)
722 ifndef NO_DIST_INSTALL
724 ifdef EXPORT_LIBRARY
# Stage libs that will be linked into a static build
726 $(INSTALL
) $(IFLAGS1
) $(LIBRARY
) $(DEPTH
)/staticlib
/components
728 $(INSTALL
) $(IFLAGS1
) $(LIBRARY
) $(DEPTH
)/staticlib
730 endif # EXPORT_LIBRARY
733 $(error Shipping static component libs makes no sense.
)
735 $(INSTALL
) $(IFLAGS1
) $(LIBRARY
) $(DIST
)/lib
741 $(INSTALL
) $(IFLAGS2
) $(SHARED_LIBRARY
) $(FINAL_TARGET
)/components
742 $(ELF_DYNSTR_GC
) $(FINAL_TARGET
)/components
/$(SHARED_LIBRARY
)
743 ifdef BEOS_ADDON_WORKAROUND
744 ( cd
$(FINAL_TARGET
)/components
&& $(CC
) -nostart
-o
$(SHARED_LIBRARY
).stub
$(SHARED_LIBRARY
) )
746 else # ! IS_COMPONENT
747 ifneq (,$(filter OS2 WINNT WINCE
,$(OS_ARCH
)))
748 $(INSTALL
) $(IFLAGS2
) $(IMPORT_LIBRARY
) $(DIST
)/lib
750 $(INSTALL
) $(IFLAGS2
) $(SHARED_LIBRARY
) $(DIST
)/lib
752 $(INSTALL
) $(IFLAGS2
) $(SHARED_LIBRARY
) $(FINAL_TARGET
)
753 ifdef BEOS_ADDON_WORKAROUND
754 ( cd
$(FINAL_TARGET
) && $(CC
) -nostart
-o
$(SHARED_LIBRARY
).stub
$(SHARED_LIBRARY
) )
757 endif # SHARED_LIBRARY
759 $(INSTALL
) $(IFLAGS2
) $(PROGRAM
) $(FINAL_TARGET
)
761 ifdef SIMPLE_PROGRAMS
762 $(INSTALL
) $(IFLAGS2
) $(SIMPLE_PROGRAMS
) $(FINAL_TARGET
)
765 $(INSTALL
) $(IFLAGS2
) $(HOST_PROGRAM
) $(DIST
)/host
/bin
767 ifdef HOST_SIMPLE_PROGRAMS
768 $(INSTALL
) $(IFLAGS2
) $(HOST_SIMPLE_PROGRAMS
) $(DIST
)/host
/bin
771 $(INSTALL
) $(IFLAGS1
) $(HOST_LIBRARY
) $(DIST
)/host
/lib
775 $(INSTALL
) $(IFLAGS1
) $(JAVA_LIBRARY
) $(FINAL_TARGET
)/components
777 $(INSTALL
) $(IFLAGS1
) $(JAVA_LIBRARY
) $(FINAL_TARGET
)
780 endif # !NO_DIST_INSTALL
783 ##############################################
785 ifndef NO_PROFILE_GUIDED_OPTIMIZE
786 ifneq (,$(MOZ_PROFILE_GENERATE
)$(MOZ_PROFILE_USE
))
787 ifeq ($(OS_ARCH
)_
$(GNU_CC
)$(INTERNAL_TOOLS
), WINNT_
)
788 # Force re-linking when building with PGO, since
789 # the MSVC linker does all the work. We force re-link
790 # in both stages so you can do depend builds with PGO.
792 $(SHARED_LIBRARY
): FORCE
793 BINARY_BASENAME
= $(SHARED_LIBRARY
:$(DLL_SUFFIX
)=)
797 BINARY_BASENAME
= $(PROGRAM
:$(BIN_SUFFIX
)=)
800 ifdef MOZ_PROFILE_USE
801 # In the second pass, we need to merge the pgc files into the pgd file.
802 # The compiler would do this for us automatically if they were in the right
803 # place, but they're in dist/bin.
804 ifdef BINARY_BASENAME
806 $(PYTHON
) $(topsrcdir
)/build
/win32
/pgomerge.py \
807 $(BINARY_BASENAME
) $(DIST
)/bin
809 endif # MOZ_PROFILE_USE
811 endif # MOZ_PROFILE_GENERATE || MOZ_PROFILE_USE
812 endif # NO_PROFILE_GUIDED_OPTIMIZE
814 ##############################################
817 $(MAKE
) -C
$(topsrcdir
) -f client.mk checkout
819 run_viewer
: $(FINAL_TARGET
)/viewer
820 cd
$(FINAL_TARGET
); \
821 MOZILLA_FIVE_HOME
=`pwd` \
822 LD_LIBRARY_PATH
=".:$(LIBS_PATH):$$LD_LIBRARY_PATH" \
825 clean clobber realclean clobber_all
:: $(SUBMAKEFILES
)
827 -rm -rf
$(ALL_TRASH_DIRS
)
829 +-$(LOOP_OVER_STATIC_DIRS
)
830 +-$(LOOP_OVER_TOOL_DIRS
)
832 distclean:: $(SUBMAKEFILES
)
834 +-$(LOOP_OVER_STATIC_DIRS
)
835 +-$(LOOP_OVER_TOOL_DIRS
)
836 -rm -rf
$(ALL_TRASH_DIRS
)
837 -rm -f
$(ALL_TRASH
) \
838 Makefile .HSancillary \
839 $(wildcard *.
$(OBJ_SUFFIX
)) $(wildcard *.ho
) $(wildcard host_
*.o
*) \
840 $(wildcard *.
$(LIB_SUFFIX
)) $(wildcard *$(DLL_SUFFIX
)) \
841 $(wildcard *.
$(IMPORT_LIB_SUFFIX
))
842 ifeq ($(OS_ARCH
),OS2
)
843 -rm -f
$(PROGRAM
:.exe
=.map
)
848 find
$(topsrcdir
) -name
dist -prune
-o \
( -name
'*.[hc]' -o
-name
'*.cp' -o
-name
'*.cpp' -o
-name
'*.idl' \
) -print |
$(TAG_PROGRAM
)
852 # creates OBJS, links with LIBS to create Foo
854 $(PROGRAM
): $(PROGOBJS
) $(LIBS_DEPS
) $(EXTRA_DEPS
) $(EXE_DEF_FILE
) $(RESFILE
) Makefile Makefile.in
855 ifeq (WINCE
,$(OS_ARCH
))
856 $(LD
) -NOLOGO
-OUT
:$@
$(WIN32_EXE_LDFLAGS
) $(LDFLAGS
) $(PROGOBJS
) $(RESFILE
) $(LIBS
) $(EXTRA_LIBS
) $(OS_LIBS
)
858 ifeq (_WINNT
,$(GNU_CC
)_
$(OS_ARCH
))
859 $(LD
) -NOLOGO
-OUT
:$@
-PDB
:$(PDBFILE
) $(WIN32_EXE_LDFLAGS
) $(LDFLAGS
) $(PROGOBJS
) $(RESFILE
) $(LIBS
) $(EXTRA_LIBS
) $(OS_LIBS
)
860 ifdef MSMANIFEST_TOOL
861 @if
test -f
$@.manifest
; then \
862 if
test -f
"$(srcdir)/$@.manifest"; then \
863 mt.exe
-NOLOGO
-MANIFEST
"$(win_srcdir)/$@.manifest" $@.manifest
-OUTPUTRESOURCE
:$@\
;1; \
865 mt.exe
-NOLOGO
-MANIFEST
$@.manifest
-OUTPUTRESOURCE
:$@\
;1; \
869 endif # MSVC with manifest tool
871 ifeq ($(CPP_PROG_LINK
),1)
872 $(CCC
) -o
$@
$(CXXFLAGS
) $(WRAP_MALLOC_CFLAGS
) $(PROGOBJS
) $(RESFILE
) $(WIN32_EXE_LDFLAGS
) $(SOLARIS_JEMALLOC_LDFLAGS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
) $(BIN_FLAGS
) $(WRAP_MALLOC_LIB
) $(PROFILER_LIBS
) $(EXE_DEF_FILE
)
873 else # ! CPP_PROG_LINK
874 $(CC
) -o
$@
$(CFLAGS
) $(PROGOBJS
) $(RESFILE
) $(WIN32_EXE_LDFLAGS
) $(SOLARIS_JEMALLOC_LDFLAGS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
) $(BIN_FLAGS
) $(EXE_DEF_FILE
)
875 endif # CPP_PROG_LINK
876 endif # WINNT && !GNU_CC
882 ifdef MOZ_POST_PROGRAM_COMMAND
883 $(MOZ_POST_PROGRAM_COMMAND
) $@
885 ifeq ($(OS_ARCH
),BeOS
)
886 ifdef BEOS_PROGRAM_RESOURCE
887 xres
-o
$@
$(BEOS_PROGRAM_RESOURCE
)
892 $(HOST_PROGRAM
): $(HOST_PROGOBJS
) $(HOST_LIBS_DEPS
) $(HOST_EXTRA_DEPS
) Makefile Makefile.in
893 ifeq (WINCE
,$(OS_ARCH
))
894 $(HOST_LD
) -NOLOGO
-OUT
:$@
$(HOST_OBJS
) $(WIN32_EXE_LDFLAGS
) $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
896 ifeq (_WINNT
,$(GNU_CC
)_
$(HOST_OS_ARCH
))
897 $(HOST_LD
) -NOLOGO
-OUT
:$@
-PDB
:$(PDBFILE
) $(HOST_OBJS
) $(WIN32_EXE_LDFLAGS
) $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
898 ifdef MSMANIFEST_TOOL
899 @if
test -f
$@.manifest
; then \
900 mt.exe
-NOLOGO
-MANIFEST
$@.manifest
-OUTPUTRESOURCE
:$@\
;1; \
903 endif # MSVC with manifest tool
905 ifeq ($(CPP_PROG_LINK
),1)
906 $(HOST_CXX
) -o
$@
$(HOST_CXXFLAGS
) $(HOST_LDFLAGS
) $(HOST_PROGOBJS
) $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
908 $(HOST_CC
) -o
$@
$(HOST_CFLAGS
) $(HOST_LDFLAGS
) $(HOST_PROGOBJS
) $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
909 endif # CPP_PROG_LINK
914 # This is an attempt to support generation of multiple binaries
915 # in one directory, it assumes everything to compile Foo is in
916 # Foo.o (from either Foo.c or Foo.cpp).
918 # SIMPLE_PROGRAMS = Foo Bar
919 # creates Foo.o Bar.o, links with LIBS to create Foo, Bar.
921 $(SIMPLE_PROGRAMS
): %$(BIN_SUFFIX
): %.
$(OBJ_SUFFIX
) $(LIBS_DEPS
) $(EXTRA_DEPS
) Makefile Makefile.in
922 ifeq (WINCE
,$(OS_ARCH
))
923 $(LD
) -nologo
-entry
:main
-out
:$@
$< $(WIN32_EXE_LDFLAGS
) $(LDFLAGS
) $(LIBS
) $(EXTRA_LIBS
) $(OS_LIBS
)
925 ifeq (_WINNT
,$(GNU_CC
)_
$(OS_ARCH
))
926 $(LD
) -nologo
-out
:$@
-pdb
:$(PDBFILE
) $< $(WIN32_EXE_LDFLAGS
) $(LDFLAGS
) $(LIBS
) $(EXTRA_LIBS
) $(OS_LIBS
)
927 ifdef MSMANIFEST_TOOL
928 @if
test -f
$@.manifest
; then \
929 mt.exe
-NOLOGO
-MANIFEST
$@.manifest
-OUTPUTRESOURCE
:$@\
;1; \
932 endif # MSVC with manifest tool
934 ifeq ($(CPP_PROG_LINK
),1)
935 $(CCC
) $(WRAP_MALLOC_CFLAGS
) $(CXXFLAGS
) -o
$@
$< $(WIN32_EXE_LDFLAGS
) $(SOLARIS_JEMALLOC_LDFLAGS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
) $(WRAP_MALLOC_LIB
) $(PROFILER_LIBS
) $(BIN_FLAGS
)
937 $(CC
) $(WRAP_MALLOC_CFLAGS
) $(CFLAGS
) $(OUTOPTION
)$@
$< $(WIN32_EXE_LDFLAGS
) $(SOLARIS_JEMALLOC_LDFLAGS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
) $(WRAP_MALLOC_LIB
) $(PROFILER_LIBS
) $(BIN_FLAGS
)
938 endif # CPP_PROG_LINK
939 endif # WINNT && !GNU_CC
945 ifdef MOZ_POST_PROGRAM_COMMAND
946 $(MOZ_POST_PROGRAM_COMMAND
) $@
949 $(HOST_SIMPLE_PROGRAMS
): host_
%$(HOST_BIN_SUFFIX
): host_
%.
$(OBJ_SUFFIX
) $(HOST_LIBS_DEPS
) $(HOST_EXTRA_DEPS
) Makefile Makefile.in
950 ifeq (WINCE
,$(OS_ARCH
))
951 $(HOST_LD
) -NOLOGO
-OUT
:$@
$(WIN32_EXE_LDFLAGS
) $< $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
953 ifeq (WINNT_
,$(HOST_OS_ARCH
)_
$(GNU_CC
))
954 $(HOST_LD
) -NOLOGO
-OUT
:$@
-PDB
:$(PDBFILE
) $< $(WIN32_EXE_LDFLAGS
) $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
956 ifneq (,$(HOST_CPPSRCS
)$(USE_HOST_CXX
))
957 $(HOST_CXX
) $(HOST_OUTOPTION
)$@
$(HOST_CXXFLAGS
) $(INCLUDES
) $< $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
959 $(HOST_CC
) $(HOST_OUTOPTION
)$@
$(HOST_CFLAGS
) $(INCLUDES
) $< $(HOST_LIBS
) $(HOST_EXTRA_LIBS
)
965 # Purify target. Solaris/sparc only to start.
966 # Purify does not recognize "egcs" or "c++" so we go with
967 # "gcc" and "g++" for now.
970 ifeq ($(CPP_PROG_LINK
),1)
971 $(PURIFY
) $(CCC
) -o
$^.pure
$(CXXFLAGS
) $(PROGOBJS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
)
973 $(PURIFY
) $(CC
) -o
$^.pure
$(CFLAGS
) $(PROGOBJS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
)
975 ifndef NO_DIST_INSTALL
976 $(INSTALL
) $(IFLAGS2
) $^.pure
$(FINAL_TARGET
)
980 ifeq ($(CPP_PROG_LINK
),1)
981 $(QUANTIFY
) $(CCC
) -o
$^.quantify
$(CXXFLAGS
) $(PROGOBJS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
)
983 $(QUANTIFY
) $(CC
) -o
$^.quantify
$(CFLAGS
) $(PROGOBJS
) $(LDFLAGS
) $(LIBS_DIR
) $(LIBS
) $(OS_LIBS
) $(EXTRA_LIBS
)
985 ifndef NO_DIST_INSTALL
986 $(INSTALL
) $(IFLAGS2
) $^.quantify
$(FINAL_TARGET
)
990 # This allows us to create static versions of the shared libraries
991 # that are built using other static libraries. Confused...?
993 ifdef SHARED_LIBRARY_LIBS
994 ifeq (,$(GNU_LD
)$(filter-out OS2 WINNT WINCE
, $(OS_ARCH
)))
995 ifneq (,$(BUILD_STATIC_LIBS
)$(FORCE_STATIC_LIB
))
996 LOBJS
+= $(SHARED_LIBRARY_LIBS
)
999 ifneq (,$(filter OSF1 BSD_OS FreeBSD NetBSD OpenBSD SunOS Darwin
,$(OS_ARCH
)))
1000 CLEANUP1
:= | egrep
-v
'(________64ELEL_|__.SYMDEF)'
1001 CLEANUP2
:= rm -f ________64ELEL_ __.SYMDEF
1005 SUB_LOBJS
= $(shell for lib in
$(SHARED_LIBRARY_LIBS
); do
$(AR_LIST
) $${lib} $(CLEANUP1
); done
;)
1008 ifdef MOZILLA_PROBE_LIBS
1009 PROBE_LOBJS
= $(shell for lib in
$(MOZILLA_PROBE_LIBS
); do
$(AR_LIST
) $${lib} $(CLEANUP1
); done
;)
1011 ifdef DTRACE_PROBE_OBJ
1012 EXTRA_DEPS
+= $(DTRACE_PROBE_OBJ
)
1015 $(LIBRARY
): $(OBJS
) $(LOBJS
) $(SHARED_LIBRARY_LIBS
) $(EXTRA_DEPS
) Makefile Makefile.in
1017 ifneq (,$(GNU_LD
)$(filter-out OS2 WINNT WINCE
, $(OS_ARCH
)))
1018 ifdef SHARED_LIBRARY_LIBS
1020 @for lib in
$(SHARED_LIBRARY_LIBS
); do
$(AR_EXTRACT
) $${lib}; $(CLEANUP2
); done
1023 $(AR
) $(AR_FLAGS
) $(OBJS
) $(LOBJS
) $(SUB_LOBJS
)
1025 @
rm -f foodummyfilefoo
$(SUB_LOBJS
)
1027 ifeq (,$(filter-out WINNT WINCE
, $(OS_ARCH
)))
1028 $(IMPORT_LIBRARY
): $(SHARED_LIBRARY
)
1031 ifeq ($(OS_ARCH
),OS2
)
1032 $(DEF_FILE
): $(OBJS
) $(SHARED_LIBRARY_LIBS
)
1034 echo LIBRARY
$(LIBRARY_NAME
) INITINSTANCE TERMINSTANCE
> $@
1036 echo CODE LOADONCALL MOVEABLE DISCARDABLE
>> $@
1037 echo DATA PRELOAD MOVEABLE MULTIPLE NONSHARED
>> $@
1039 ifeq ($(IS_COMPONENT
),1)
1040 ifeq ($(HAS_EXTRAEXPORTS
),1)
1041 ifndef MOZ_OS2_USE_DECLSPEC
1042 $(FILTER
) $(OBJS
) $(SHARED_LIBRARY_LIBS
) >> $@
1045 echo _NSGetModule
>> $@
1048 ifndef MOZ_OS2_USE_DECLSPEC
1049 $(FILTER
) $(OBJS
) $(SHARED_LIBRARY_LIBS
) >> $@
1054 ifdef MOZ_OS2_USE_DECLSPEC
1055 $(IMPORT_LIBRARY
): $(SHARED_LIBRARY
)
1057 $(IMPORT_LIBRARY
): $(DEF_FILE
)
1064 $(HOST_LIBRARY
): $(HOST_OBJS
) Makefile
1066 $(HOST_AR
) $(HOST_AR_FLAGS
) $(HOST_OBJS
)
1069 ifdef NO_LD_ARCHIVE_FLAGS
1070 SUB_SHLOBJS
= $(SUB_LOBJS
)
1075 ifdef DTRACE_PROBE_OBJ
1076 ifndef DTRACE_LIB_DEPENDENT
1077 $(DTRACE_PROBE_OBJ
): $(OBJS
)
1078 dtrace
-G
-C
-32 -s
$(MOZILLA_DTRACE_SRC
) -o
$(DTRACE_PROBE_OBJ
) $(OBJS
)
1084 # On Darwin (Mac OS X), dwarf2 debugging uses debug info left in .o files,
1085 # so instead of deleting .o files after repacking them into a dylib, we make
1086 # symlinks back to the originals. The symlinks are a no-op for stabs debugging,
1087 # so no need to conditionalize on OS version or debugging format.
1089 $(SHARED_LIBRARY
): $(OBJS
) $(LOBJS
) $(DEF_FILE
) $(RESFILE
) $(SHARED_LIBRARY_LIBS
) $(EXTRA_DEPS
) $(DSO_LDOPTS_DEPS
) Makefile Makefile.in
1090 ifndef INCREMENTAL_LINKER
1093 ifeq ($(OS_ARCH
),OpenVMS
)
1094 @if
test ! -f
$(VMS_SYMVEC_FILE
); then \
1095 if
test -f
$(VMS_SYMVEC_FILE_MODULE
); then \
1096 echo Creating specific component options file
$(VMS_SYMVEC_FILE
); \
1097 cp
$(VMS_SYMVEC_FILE_MODULE
) $(VMS_SYMVEC_FILE
); \
1101 @if
test ! -f
$(VMS_SYMVEC_FILE
); then \
1102 echo Creating generic component options file
$(VMS_SYMVEC_FILE
); \
1103 cp
$(VMS_SYMVEC_FILE_COMP
) $(VMS_SYMVEC_FILE
); \
1107 ifdef NO_LD_ARCHIVE_FLAGS
1108 ifdef SHARED_LIBRARY_LIBS
1109 @
rm -f
$(SUB_SHLOBJS
)
1110 @for lib in
$(SHARED_LIBRARY_LIBS
); do
$(AR_EXTRACT
) $${lib}; $(CLEANUP2
); done
1111 ifeq ($(OS_ARCH
),Darwin
)
1112 @echo Making symlinks to the original object files in the archive libraries
$(SHARED_LIBRARY_LIBS
)
1113 @for lib in
$(SHARED_LIBRARY_LIBS
); do \
1114 libdir=`echo $$lib|sed -e 's,/[^/]*\.a,,'`; \
1115 ofiles
=`$(AR_LIST) $${lib}`; \
1116 for ofile in
$$ofiles; do \
1117 if
[ -f
$$libdir/$$ofile ]; then \
1119 ln
-s
$$libdir/$$ofile $$ofile; \
1124 endif # SHARED_LIBRARY_LIBS
1125 endif # NO_LD_ARCHIVE_FLAGS
1126 ifdef DTRACE_LIB_DEPENDENT
1127 @
rm -f
$(PROBE_LOBJS
)
1128 @for lib in
$(MOZILLA_PROBE_LIBS
); do
$(AR_EXTRACT
) $${lib}; $(CLEANUP2
); done
1130 dtrace
-G
-C
-32 -s
$(MOZILLA_DTRACE_SRC
) -o
$(DTRACE_PROBE_OBJ
) $(PROBE_LOBJS
)
1132 @for lib in
$(MOZILLA_PROBE_LIBS
); do \
1133 ofiles
=`$(AR_LIST) $${lib}`; \
1134 $(AR_DELETE
) $${lib} $$ofiles; \
1136 $(MKSHLIB
) $(SHLIB_LDSTARTFILE
) $(OBJS
) $(LOBJS
) $(SUB_SHLOBJS
) $(DTRACE_PROBE_OBJ
) $(PROBE_LOBJS
) $(RESFILE
) $(LDFLAGS
) $(EXTRA_DSO_LDOPTS
) $(OS_LIBS
) $(EXTRA_LIBS
) $(DEF_FILE
) $(SHLIB_LDENDFILE
)
1137 @
rm -f
$(PROBE_LOBJS
)
1138 @
rm -f
$(DTRACE_PROBE_OBJ
)
1139 @for lib in
$(MOZILLA_PROBE_LIBS
); do \
1140 if
[ -L
$${lib} ]; then
rm -f
`readlink $${lib}`; fi
; \
1142 @
rm -f
$(MOZILLA_PROBE_LIBS
)
1144 else # ! DTRACE_LIB_DEPENDENT
1145 $(MKSHLIB
) $(SHLIB_LDSTARTFILE
) $(OBJS
) $(DTRACE_PROBE_OBJ
) $(LOBJS
) $(SUB_SHLOBJS
) $(RESFILE
) $(LDFLAGS
) $(EXTRA_DSO_LDOPTS
) $(OS_LIBS
) $(EXTRA_LIBS
) $(DEF_FILE
) $(SHLIB_LDENDFILE
)
1146 endif # DTRACE_LIB_DEPENDENT
1148 ifeq (_WINNT
,$(GNU_CC
)_
$(OS_ARCH
))
1149 ifdef MSMANIFEST_TOOL
1150 ifdef EMBED_MANIFEST_AT
1151 @if
test -f
$@.manifest
; then \
1152 mt.exe
-NOLOGO
-MANIFEST
$@.manifest
-OUTPUTRESOURCE
:$@\
;$(EMBED_MANIFEST_AT
); \
1153 rm -f
$@.manifest
; \
1155 endif # EMBED_MANIFEST_AT
1156 endif # MSVC with manifest tool
1157 endif # WINNT && !GCC
1158 ifeq ($(OS_ARCH
),Darwin
)
1160 @
rm -f
$(SUB_SHLOBJS
)
1162 @
rm -f foodummyfilefoo
$(DELETE_AFTER_LINK
)
1167 ifdef MOZ_POST_DSO_LIB_COMMAND
1168 $(MOZ_POST_DSO_LIB_COMMAND
) $@
1172 ifdef COMPILER_DEPEND
1173 ifeq (__SunOS
,$(GNU_CC
)_
$(GNU_CXX
)_
$(OS_ARCH
))
1174 _MDDEPFILE
= $(MDDEPDIR
)/$(@F
).pp
1176 define MAKE_DEPS_AUTO_CC
1177 if
test -d
$(@D
); then \
1178 echo
"Building deps for $< using Sun Studio cc"; \
1179 $(CC
) $(COMPILE_CFLAGS
) -xM
$< >$(_MDDEPFILE
) ; \
1182 define MAKE_DEPS_AUTO_CXX
1183 if
test -d
$(@D
); then \
1184 echo
"Building deps for $< using Sun Studio CC"; \
1185 $(CXX
) $(COMPILE_CXXFLAGS
) -xM
$< >$(_MDDEPFILE
) ; \
1188 endif # Sun Studio on Solaris
1189 else # COMPILER_DEPEND
1191 # Generate dependencies on the fly
1193 _MDDEPFILE
= $(MDDEPDIR
)/$(@F
).pp
1195 define MAKE_DEPS_AUTO
1196 if
test -d
$(@D
); then \
1197 echo
"Building deps for $<"; \
1198 $(MKDEPEND
) -o
'.$(OBJ_SUFFIX)' -f-
$(DEFINES
) $(ACDEFINES
) $(INCLUDES
) $< 2>/dev
/null | sed
-e
"s|^[^ ]*/||" > $(_MDDEPFILE
) ; \
1202 MAKE_DEPS_AUTO_CC
= $(MAKE_DEPS_AUTO
)
1203 MAKE_DEPS_AUTO_CXX
= $(MAKE_DEPS_AUTO
)
1205 endif # COMPILER_DEPEND
1207 endif # MOZ_AUTO_DEPS
1210 ifeq ($(OS_ARCH
),SunOS
)
1211 SOLARIS_JEMALLOC_LDFLAGS
= $(call EXPAND_LIBNAME_PATH
,jemalloc
,$(DIST
)/lib
)
1215 # Rules for building native targets must come first because of the host_ prefix
1216 host_
%.
$(OBJ_SUFFIX
): %.c Makefile Makefile.in
1218 $(ELOG
) $(HOST_CC
) $(HOST_OUTOPTION
)$@
-c
$(HOST_CFLAGS
) $(INCLUDES
) $(NSPR_CFLAGS
) $(_VPATH_SRCS
)
1220 host_
%.
$(OBJ_SUFFIX
): %.
cpp Makefile Makefile.in
1222 $(ELOG
) $(HOST_CXX
) $(HOST_OUTOPTION
)$@
-c
$(HOST_CXXFLAGS
) $(INCLUDES
) $(NSPR_CFLAGS
) $(_VPATH_SRCS
)
1224 host_
%.
$(OBJ_SUFFIX
): %.
cc Makefile Makefile.in
1226 $(ELOG
) $(HOST_CXX
) $(HOST_OUTOPTION
)$@
-c
$(HOST_CXXFLAGS
) $(INCLUDES
) $(NSPR_CFLAGS
) $(_VPATH_SRCS
)
1228 host_
%.
$(OBJ_SUFFIX
): %.m Makefile Makefile.in
1230 $(ELOG
) $(HOST_CC
) $(HOST_OUTOPTION
)$@
-c
$(HOST_CFLAGS
) $(HOST_CMFLAGS
) $(INCLUDES
) $(NSPR_CFLAGS
) $(_VPATH_SRCS
)
1232 host_
%.
$(OBJ_SUFFIX
): %.mm Makefile Makefile.in
1234 $(ELOG
) $(HOST_CXX
) $(HOST_OUTOPTION
)$@
-c
$(HOST_CXXFLAGS
) $(HOST_CMMFLAGS
) $(INCLUDES
) $(NSPR_CFLAGS
) $(_VPATH_SRCS
)
1236 %: %.c Makefile Makefile.in
1238 @
$(MAKE_DEPS_AUTO_CC
)
1239 $(ELOG
) $(CC
) $(CFLAGS
) $(LDFLAGS
) $(OUTOPTION
)$@
$(_VPATH_SRCS
)
1241 %.
$(OBJ_SUFFIX
): %.c Makefile Makefile.in
1243 @
$(MAKE_DEPS_AUTO_CC
)
1244 $(ELOG
) $(CC
) $(OUTOPTION
)$@
-c
$(COMPILE_CFLAGS
) $(_VPATH_SRCS
)
1246 moc_
%.
cpp: %.h Makefile Makefile.in
1247 $(MOC
) $< $(OUTOPTION
)$@
1250 # The AS_DASH_C_FLAG is needed cause not all assemblers (Solaris) accept
1252 %.
$(OBJ_SUFFIX
): %.
$(ASM_SUFFIX
) Makefile Makefile.in
1253 $(AS
) -o
$@
$(ASFLAGS
) $(AS_DASH_C_FLAG
) $(_VPATH_SRCS
)
1256 %.
$(OBJ_SUFFIX
): %.S Makefile Makefile.in
1257 $(AS
) -o
$@
$(ASFLAGS
) -c
$<
1259 %: %.
cpp Makefile Makefile.in
1260 @
$(MAKE_DEPS_AUTO_CXX
)
1261 $(CCC
) $(OUTOPTION
)$@
$(CXXFLAGS
) $(_VPATH_SRCS
) $(LDFLAGS
)
1264 # Please keep the next two rules in sync.
1266 %.
$(OBJ_SUFFIX
): %.
cc Makefile Makefile.in
1268 @
$(MAKE_DEPS_AUTO_CXX
)
1269 $(ELOG
) $(CCC
) $(OUTOPTION
)$@
-c
$(COMPILE_CXXFLAGS
) $(_VPATH_SRCS
)
1271 %.
$(OBJ_SUFFIX
): %.
cpp Makefile Makefile.in
1273 @
$(MAKE_DEPS_AUTO_CXX
)
1274 ifdef STRICT_CPLUSPLUS_SUFFIX
1275 echo
"#line 1 \"$*.cpp\"" | cat
- $*.
cpp > t_
$*.
cc
1276 $(ELOG
) $(CCC
) -o
$@
-c
$(COMPILE_CXXFLAGS
) t_
$*.
cc
1279 $(ELOG
) $(CCC
) $(OUTOPTION
)$@
-c
$(COMPILE_CXXFLAGS
) $(_VPATH_SRCS
)
1280 endif #STRICT_CPLUSPLUS_SUFFIX
1282 $(OBJ_PREFIX
)%.
$(OBJ_SUFFIX
): %.mm Makefile Makefile.in
1284 @
$(MAKE_DEPS_AUTO_CXX
)
1285 $(ELOG
) $(CCC
) -o
$@
-c
$(COMPILE_CXXFLAGS
) $(COMPILE_CMMFLAGS
) $(_VPATH_SRCS
)
1287 $(OBJ_PREFIX
)%.
$(OBJ_SUFFIX
): %.m Makefile Makefile.in
1289 @
$(MAKE_DEPS_AUTO_CC
)
1290 $(ELOG
) $(CC
) -o
$@
-c
$(COMPILE_CFLAGS
) $(COMPILE_CMFLAGS
) $(_VPATH_SRCS
)
1293 $(CCC
) -S
$(COMPILE_CXXFLAGS
) $(_VPATH_SRCS
)
1296 $(CCC
) -S
$(COMPILE_CXXFLAGS
) $(_VPATH_SRCS
)
1299 $(CC
) -S
$(COMPILE_CFLAGS
) $(_VPATH_SRCS
)
1302 $(CCC
) -C
-E
$(COMPILE_CXXFLAGS
) $(_VPATH_SRCS
) > $*.i
1305 $(CCC
) -C
-E
$(COMPILE_CXXFLAGS
) $(_VPATH_SRCS
) > $*.i
1308 $(CC
) -C
-E
$(COMPILE_CFLAGS
) $(_VPATH_SRCS
) > $*.i
1311 $(CCC
) -C
-E
$(COMPILE_CXXFLAGS
) $(COMPILE_CMMFLAGS
) $(_VPATH_SRCS
) > $*.i
1314 @echo Creating Resource file
: $@
1315 ifeq ($(OS_ARCH
),OS2
)
1316 $(RC
) $(RCFLAGS
:-D
%=-d
%) -i
$(subst /,\
,$(srcdir)) -r
$< $@
1319 $(RC
) $(RCFLAGS
) $(filter-out -U
%,$(DEFINES
)) $(INCLUDES
:-I
%=--include-dir
%) $(OUTOPTION
)$@
$(_VPATH_SRCS
)
1321 $(RC
) $(RCFLAGS
) -r
$(DEFINES
) $(INCLUDES
) $(OUTOPTION
)$@
$(_VPATH_SRCS
)
1325 # need 3 separate lines for OS/2
1332 rm -f
$@
; cp
$< $@
; chmod
+x
$@
1334 # Cancel these implicit rules
1344 ###############################################################################
1346 ###############################################################################
1347 ifneq (,$(filter OS2 WINNT WINCE
,$(OS_ARCH
)))
1354 SPACE
:= $(EMPTY
) $(EMPTY
)
1356 # Cygwin and MSYS have their own special path form, but javac expects the source
1357 # and class paths to be in the DOS form (i.e. e:/builds/...). This function
1358 # does the appropriate conversion on Windows, but is a noop on other systems.
1359 ifeq (,$(filter-out WINNT WINCE
, $(HOST_OS_ARCH
)))
1360 ifdef CYGWIN_WRAPPER
1361 normalizepath
= $(foreach p
,$(1),$(shell cygpath
-m
$(p
)))
1364 # We use 'pwd -W' to get DOS form of the path. However, since the given path
1365 # could be a file or a non-existent path, we cannot call 'pwd -W' directly
1366 # on the path. Instead, we extract the root path (i.e. "c:/"), call 'pwd -W'
1367 # on it, then merge with the rest of the path.
1368 root-path
= $(shell echo
$(1) | sed
-e
"s|\(/[^/]*\)/\?\(.*\)|\1|")
1369 non-root-path
= $(shell echo
$(1) | sed
-e
"s|\(/[^/]*\)/\?\(.*\)|\2|")
1370 normalizepath
= $(foreach p
,$(1),$(if
$(filter /%,$(1)),$(shell cd
$(call root-path
,$(1)) && pwd
-W
)$(call non-root-path
,$(1)),$(1)))
1373 normalizepath
= $(1)
1376 _srcdir
= $(call normalizepath
,$(srcdir))
1377 ifdef JAVA_SOURCEPATH
1378 SP
= $(subst $(SPACE
),$(SEP
),$(call normalizepath
,$(strip $(JAVA_SOURCEPATH
))))
1379 _JAVA_SOURCEPATH
= ".$(SEP)$(_srcdir)$(SEP)$(SP)"
1381 _JAVA_SOURCEPATH
= ".$(SEP)$(_srcdir)"
1384 ifdef JAVA_CLASSPATH
1385 CP
= $(subst $(SPACE
),$(SEP
),$(call normalizepath
,$(strip $(JAVA_CLASSPATH
))))
1386 _JAVA_CLASSPATH
= ".$(SEP)$(CP)"
1395 $(_JAVA_DIR
)/%.class
: %.java Makefile Makefile.in
$(_JAVA_DIR
)
1396 $(CYGWIN_WRAPPER
) $(JAVAC
) $(JAVAC_FLAGS
) -classpath
$(_JAVA_CLASSPATH
) \
1397 -sourcepath
$(_JAVA_SOURCEPATH
) -d
$(_JAVA_DIR
) $(_VPATH_SRCS
)
1399 $(JAVA_LIBRARY
): $(addprefix $(_JAVA_DIR
)/,$(JAVA_SRCS
:.java
=.class
)) Makefile Makefile.in
1400 $(JAR
) cf
$@
-C
$(_JAVA_DIR
) .
1402 GARBAGE_DIRS
+= $(_JAVA_DIR
)
1404 ###############################################################################
1406 ###############################################################################
1408 # In GNU make 3.80, makefiles must use the /cygdrive syntax, even if we're
1409 # processing them with AS perl. See bug 232003
1411 CYGWIN_TOPSRCDIR
= -nowrap
-p
$(topsrcdir
) -wrap
1414 # Note: Passing depth to make-makefile is optional.
1415 # It saves the script some work, though.
1416 Makefile
: Makefile.in
1417 @
$(PERL
) $(AUTOCONF_TOOLS
)/make-makefile
-t
$(topsrcdir
) -d
$(DEPTH
) $(CYGWIN_TOPSRCDIR
)
1420 # VPATH does not work on some machines in this case, so add $(srcdir)
1421 $(SUBMAKEFILES
): % : $(srcdir)/%.in
1422 $(PERL
) $(AUTOCONF_TOOLS
)/make-makefile
-t
$(topsrcdir
) -d
$(DEPTH
) $(CYGWIN_TOPSRCDIR
) $@
1425 ifdef AUTOUPDATE_CONFIGURE
1426 $(topsrcdir
)/configure
: $(topsrcdir
)/configure.in
1427 (cd
$(topsrcdir
) && $(AUTOCONF
)) && (cd
$(DEPTH
) && .
/config.status
--recheck
)
1430 ###############################################################################
1431 # Bunch of things that extend the 'export' rule (in order):
1432 ###############################################################################
1434 ################################################################################
1435 # Copy each element of EXPORTS to $(PUBLIC)
1437 ifneq ($(EXPORTS
)$(XPIDLSRCS
)$(SDK_HEADERS
)$(SDK_XPIDLSRCS
),)
1438 $(SDK_PUBLIC
) $(PUBLIC
)::
1439 @if
test ! -d
$@
; then
$(ECHO
) Creating
$@
; rm -rf
$@
; $(NSINSTALL
) -D
$@
; else true
; fi
1443 ifneq ($(XPIDLSRCS
)$(SDK_XPIDLSRCS
),)
1449 ifneq ($(XPI_NAME
),)
1451 @if
test ! -d
$(FINAL_TARGET
); then echo Creating
$(FINAL_TARGET
); rm -fr
$(FINAL_TARGET
); $(NSINSTALL
) -D
$(FINAL_TARGET
); else true
; fi
1454 ifndef NO_DIST_INSTALL
1456 export:: $(EXPORTS
) $(PUBLIC
)
1457 $(INSTALL
) $(IFLAGS1
) $^
1460 ifneq ($(SDK_HEADERS
),)
1461 export:: $(SDK_HEADERS
) $(SDK_PUBLIC
)
1462 $(INSTALL
) $(IFLAGS1
) $^
1464 export:: $(SDK_HEADERS
) $(PUBLIC
)
1465 $(INSTALL
) $(IFLAGS1
) $^
1467 endif # NO_DIST_INSTALL
1469 ################################################################################
1470 # Copy each element of PREF_JS_EXPORTS
1475 ifneq (,$(XPI_NAME
)$(LIBXUL_SDK
))
1476 PREF_DIR
= defaults
/preferences
1478 PREF_DIR
= defaults
/pref
1482 ifneq ($(PREF_JS_EXPORTS
),)
1483 # on win32, pref files need CRLF line endings... see bug 206029
1484 ifeq (WINNT
,$(OS_ARCH
))
1485 PREF_PPFLAGS
= --line-endings
=crlf
1488 ifndef NO_DIST_INSTALL
1489 libs
:: $(PREF_JS_EXPORTS
)
1490 if
test ! -d
$(FINAL_TARGET
)/$(PREF_DIR
); then
$(NSINSTALL
) -D
$(FINAL_TARGET
)/$(PREF_DIR
); fi
1492 for i in
$(PREF_JS_EXPORTS
); do \
1493 dest
=$(FINAL_TARGET
)/$(PREF_DIR
)/`basename $$i`; \
1495 $(PYTHON
) $(topsrcdir
)/config
/Preprocessor.py
$(PREF_PPFLAGS
) $(DEFINES
) $(ACDEFINES
) $(XULPPFLAGS
) $$i > $$dest; \
1500 ################################################################################
1501 # Copy each element of AUTOCFG_JS_EXPORTS to $(FINAL_TARGET)/defaults/autoconfig
1503 ifneq ($(AUTOCFG_JS_EXPORTS
),)
1504 $(FINAL_TARGET
)/defaults
/autoconfig
::
1505 @if
test ! -d
$@
; then echo Creating
$@
; rm -rf
$@
; $(NSINSTALL
) -D
$@
; else true
; fi
1507 ifndef NO_DIST_INSTALL
1508 export:: $(AUTOCFG_JS_EXPORTS
) $(FINAL_TARGET
)/defaults
/autoconfig
1509 $(INSTALL
) $(IFLAGS1
) $^
1513 ################################################################################
1514 # Export the elements of $(XPIDLSRCS) & $(SDK_XPIDLSRCS),
1515 # generating .h and .xpt files and moving them to the appropriate places.
1517 ifneq ($(XPIDLSRCS
)$(SDK_XPIDLSRCS
),)
1519 export:: $(patsubst %.idl
,$(XPIDL_GEN_DIR
)/%.h
, $(XPIDLSRCS
))
1522 XPIDL_MODULE
= $(MODULE
)
1525 ifeq ($(XPIDL_MODULE
),) # we need $(XPIDL_MODULE) to make $(XPIDL_MODULE).xpt
1528 @echo
"*** Error processing XPIDLSRCS:"
1529 @echo
"Please define MODULE or XPIDL_MODULE when defining XPIDLSRCS,"
1530 @echo
"so we have a module name to use when creating MODULE.xpt."
1531 @echo
; sleep
2; false
1534 $(SDK_IDL_DIR
) $(IDL_DIR
)::
1535 @if
test ! -d
$@
; then echo Creating
$@
; rm -rf
$@
; $(NSINSTALL
) -D
$@
; else true
; fi
1537 # generate .h files from into $(XPIDL_GEN_DIR), then export to $(PUBLIC);
1538 # warn against overriding existing .h file.
1539 $(XPIDL_GEN_DIR
)/.done
:
1540 @if
test ! -d
$(XPIDL_GEN_DIR
); then echo Creating
$(XPIDL_GEN_DIR
)/.done
; rm -rf
$(XPIDL_GEN_DIR
); mkdir
$(XPIDL_GEN_DIR
); fi
1543 # don't depend on $(XPIDL_GEN_DIR), because the modification date changes
1544 # with any addition to the directory, regenerating all .h files -> everything.
1546 $(XPIDL_GEN_DIR
)/%.h
: %.idl
$(XPIDL_COMPILE
) $(XPIDL_GEN_DIR
)/.done
1548 $(ELOG
) $(XPIDL_COMPILE
) -m header
-w
$(XPIDL_FLAGS
) -o
$(XPIDL_GEN_DIR
)/$* $(_VPATH_SRCS
)
1549 @if
test -n
"$(findstring $*.h, $(EXPORTS) $(SDK_HEADERS))"; \
1550 then echo
"*** WARNING: file $*.h generated from $*.idl overrides $(srcdir)/$*.h"; else true
; fi
1553 # generate intermediate .xpt files into $(XPIDL_GEN_DIR), then link
1554 # into $(XPIDL_MODULE).xpt and export it to $(FINAL_TARGET)/components.
1555 $(XPIDL_GEN_DIR
)/%.xpt
: %.idl
$(XPIDL_COMPILE
) $(XPIDL_GEN_DIR
)/.done
1557 $(ELOG
) $(XPIDL_COMPILE
) -m typelib
-w
$(XPIDL_FLAGS
) -e
$@
-d
$(MDDEPDIR
)/$*.pp
$(_VPATH_SRCS
)
1559 # no need to link together if XPIDLSRCS contains only XPIDL_MODULE
1560 ifneq ($(XPIDL_MODULE
).idl
,$(strip $(XPIDLSRCS
)))
1561 $(XPIDL_GEN_DIR
)/$(XPIDL_MODULE
).xpt
: $(patsubst %.idl
,$(XPIDL_GEN_DIR
)/%.xpt
,$(XPIDLSRCS
) $(SDK_XPIDLSRCS
)) Makefile.in Makefile
$(XPIDL_LINK
)
1562 $(XPIDL_LINK
) $(XPIDL_GEN_DIR
)/$(XPIDL_MODULE
).xpt
$(patsubst %.idl
,$(XPIDL_GEN_DIR
)/%.xpt
,$(XPIDLSRCS
) $(SDK_XPIDLSRCS
))
1563 endif # XPIDL_MODULE.xpt != XPIDLSRCS
1565 libs
:: $(XPIDL_GEN_DIR
)/$(XPIDL_MODULE
).xpt
1566 ifndef NO_DIST_INSTALL
1567 $(INSTALL
) $(IFLAGS1
) $(XPIDL_GEN_DIR
)/$(XPIDL_MODULE
).xpt
$(FINAL_TARGET
)/components
1572 GARBAGE_DIRS
+= $(XPIDL_GEN_DIR
)
1574 endif # XPIDLSRCS || SDK_XPIDLSRCS
1576 ifneq ($(XPIDLSRCS
),)
1577 # export .idl files to $(IDL_DIR)
1578 ifndef NO_DIST_INSTALL
1579 export:: $(XPIDLSRCS
) $(IDL_DIR
)
1580 $(INSTALL
) $(IFLAGS1
) $^
1582 export:: $(patsubst %.idl
,$(XPIDL_GEN_DIR
)/%.h
, $(XPIDLSRCS
)) $(PUBLIC
)
1583 $(INSTALL
) $(IFLAGS1
) $^
1584 endif # NO_DIST_INSTALL
1591 # General rules for exporting idl files.
1593 # WORK-AROUND ONLY, for mozilla/tools/module-deps/bootstrap.pl build.
1594 # Bug to fix idl dependency problems w/o this extra build pass is
1595 # http://bugzilla.mozilla.org/show_bug.cgi?id=145777
1598 @if
test ! -d
$@
; then echo Creating
$@
; rm -rf
$@
; $(NSINSTALL
) -D
$@
; else true
; fi
1600 export-idl
:: $(SUBMAKEFILES
) $(MAKE_DIRS
)
1602 ifneq ($(XPIDLSRCS
)$(SDK_XPIDLSRCS
),)
1603 ifndef NO_DIST_INSTALL
1604 export-idl
:: $(XPIDLSRCS
) $(SDK_XPIDLSRCS
) $(IDL_DIR
)
1605 $(INSTALL
) $(IFLAGS1
) $^
1609 +$(LOOP_OVER_TOOL_DIRS
)
1614 ifneq ($(SDK_XPIDLSRCS
),)
1615 # export .idl files to $(IDL_DIR) & $(SDK_IDL_DIR)
1616 ifndef NO_DIST_INSTALL
1617 export:: $(SDK_XPIDLSRCS
) $(IDL_DIR
)
1618 $(INSTALL
) $(IFLAGS1
) $^
1620 export:: $(SDK_XPIDLSRCS
) $(SDK_IDL_DIR
)
1621 $(INSTALL
) $(IFLAGS1
) $^
1623 export:: $(patsubst %.idl
,$(XPIDL_GEN_DIR
)/%.h
, $(SDK_XPIDLSRCS
)) $(PUBLIC
)
1624 $(INSTALL
) $(IFLAGS1
) $^
1626 export:: $(patsubst %.idl
,$(XPIDL_GEN_DIR
)/%.h
, $(SDK_XPIDLSRCS
)) $(SDK_PUBLIC
)
1627 $(INSTALL
) $(IFLAGS1
) $^
1630 endif # SDK_XPIDLSRCS
1635 ifneq ($(XPIDLSRCS
)$(SDK_XPIDLSRCS
),)
1637 JAVA_XPIDLSRCS
= $(XPIDLSRCS
) $(SDK_XPIDLSRCS
)
1639 # A single IDL file can contain multiple interfaces, which result in multiple
1640 # Java interface files. So use hidden dependency files.
1641 JAVADEPFILES
= $(addprefix $(JAVA_GEN_DIR
)/.
,$(JAVA_XPIDLSRCS
:.idl
=.java.pp
))
1645 GARBAGE_DIRS
+= $(JAVA_GEN_DIR
)
1647 # generate .java files into _javagen/[package name dirs]
1648 _JAVA_GEN_DIR
= $(JAVA_GEN_DIR
)/$(JAVA_IFACES_PKG_NAME
)
1652 $(JAVA_GEN_DIR
)/.
%.java.pp
: %.idl
$(XPIDL_COMPILE
) $(_JAVA_GEN_DIR
)
1654 $(ELOG
) $(XPIDL_COMPILE
) -m java
-w
-I
$(srcdir) -I
$(IDL_DIR
) -o
$(_JAVA_GEN_DIR
)/$* $(_VPATH_SRCS
)
1657 # "Install" generated Java interfaces. We segregate them based on the XPI_NAME.
1658 # If XPI_NAME is not set, install into the "default" directory.
1659 ifneq ($(XPI_NAME
),)
1660 JAVA_INSTALL_DIR
= $(JAVA_DIST_DIR
)/$(XPI_NAME
)
1662 JAVA_INSTALL_DIR
= $(JAVA_DIST_DIR
)/default
1665 $(JAVA_INSTALL_DIR
):
1668 export:: $(JAVA_DIST_DIR
) $(JAVADEPFILES
) $(JAVA_INSTALL_DIR
)
1669 (cd
$(JAVA_GEN_DIR
) && tar $(TAR_CREATE_FLAGS
) - .
) |
(cd
$(JAVA_INSTALL_DIR
) && tar -xf
-)
1671 endif # XPIDLSRCS || SDK_XPIDLSRCS
1672 endif # MOZ_JAVAXPCOM
1674 ################################################################################
1675 # Copy each element of EXTRA_COMPONENTS to $(FINAL_TARGET)/components
1676 ifdef EXTRA_COMPONENTS
1677 libs
:: $(EXTRA_COMPONENTS
)
1678 ifndef NO_DIST_INSTALL
1679 $(INSTALL
) $(IFLAGS1
) $^
$(FINAL_TARGET
)/components
1684 ifdef EXTRA_PP_COMPONENTS
1685 libs
:: $(EXTRA_PP_COMPONENTS
)
1686 ifndef NO_DIST_INSTALL
1688 $(NSINSTALL
) -D
$(FINAL_TARGET
)/components
; \
1690 dest
=$(FINAL_TARGET
)/components
/`basename $$i`; \
1692 $(PYTHON
) $(topsrcdir
)/config
/Preprocessor.py
$(DEFINES
) $(ACDEFINES
) $(XULPPFLAGS
) $$i > $$dest; \
1698 ################################################################################
1699 # Copy each element of EXTRA_JS_MODULES to $(FINAL_TARGET)/modules
1700 ifdef EXTRA_JS_MODULES
1701 libs
:: $(EXTRA_JS_MODULES
)
1702 ifndef NO_DIST_INSTALL
1703 $(INSTALL
) $(IFLAGS1
) $^
$(FINAL_TARGET
)/modules
1708 ifdef EXTRA_PP_JS_MODULES
1709 libs
:: $(EXTRA_PP_JS_MODULES
)
1710 ifndef NO_DIST_INSTALL
1712 $(NSINSTALL
) -D
$(FINAL_TARGET
)/modules
; \
1714 dest
=$(FINAL_TARGET
)/modules
/`basename $$i`; \
1716 $(PYTHON
) $(topsrcdir
)/config
/Preprocessor.py
$(DEFINES
) $(ACDEFINES
) $(XULPPFLAGS
) $$i > $$dest; \
1722 ################################################################################
1725 ifneq (,$(SDK_LIBRARY
))
1727 @if
test ! -d
$@
; then echo Creating
$@
; rm -rf
$@
; $(NSINSTALL
) -D
$@
; else true
; fi
1729 ifndef NO_DIST_INSTALL
1730 libs
:: $(SDK_LIBRARY
) $(SDK_LIB_DIR
)
1731 $(INSTALL
) $(IFLAGS2
) $^
1736 ifneq (,$(SDK_BINARY
))
1738 @if
test ! -d
$@
; then echo Creating
$@
; rm -rf
$@
; $(NSINSTALL
) -D
$@
; else true
; fi
1740 ifndef NO_DIST_INSTALL
1741 libs
:: $(SDK_BINARY
) $(SDK_BIN_DIR
)
1742 $(INSTALL
) $(IFLAGS2
) $^
1747 ################################################################################
1750 JAR_MANIFEST
:= $(srcdir)/jar.mn
1755 +$(LOOP_OVER_TOOL_DIRS
)
1757 libs realchrome
:: $(CHROME_DEPS
)
1758 ifndef NO_DIST_INSTALL
1760 if
test -f
$(JAR_MANIFEST
); then \
1761 if
test ! -d
$(FINAL_TARGET
)/chrome
; then
$(NSINSTALL
) -D
$(FINAL_TARGET
)/chrome
; fi
; \
1762 $(PYTHON
) $(MOZILLA_DIR
)/config
/JarMaker.py \
1763 $(QUIET
) -j
$(FINAL_TARGET
)/chrome \
1764 $(MAKE_JARS_FLAGS
) $(XULPPFLAGS
) $(DEFINES
) $(ACDEFINES
) \
1769 ifneq ($(DIST_FILES
),)
1770 libs
:: $(DIST_FILES
)
1772 for f in
$(DIST_FILES
); do \
1773 dest
=$(FINAL_TARGET
)/`basename $$f`; \
1775 $(PYTHON
) $(MOZILLA_DIR
)/config
/Preprocessor.py \
1776 $(XULAPP_DEFINES
) $(DEFINES
) $(ACDEFINES
) $(XULPPFLAGS
) \
1777 $(srcdir)/$$f > $$dest; \
1781 ifneq ($(DIST_CHROME_FILES
),)
1782 libs
:: $(DIST_CHROME_FILES
)
1784 for f in
$(DIST_CHROME_FILES
); do \
1785 dest
=$(FINAL_TARGET
)/chrome
/`basename $$f`; \
1787 $(PYTHON
) $(MOZILLA_DIR
)/config
/Preprocessor.py \
1788 $(XULAPP_DEFINES
) $(DEFINES
) $(ACDEFINES
) $(XULPPFLAGS
) \
1789 $(srcdir)/$$f > $$dest; \
1793 ifneq ($(XPI_PKGNAME
),)
1797 @echo
"Stripping $(XPI_PKGNAME) package directory..."
1798 @echo
$(FINAL_TARGET
)
1799 @cd
$(FINAL_TARGET
) && find .
! -type d \
1809 ! -name
"*.properties" \
1820 $(PLATFORM_EXCLUDE_LIST
) \
1821 -exec
$(STRIP
) $(STRIP_FLAGS
) {} >/dev
/null
2>&1 \
;
1824 @echo
"Packaging $(XPI_PKGNAME).xpi..."
1825 cd
$(FINAL_TARGET
) && $(ZIP
) -qr ..
/$(XPI_PKGNAME
).xpi
*
1828 ifdef INSTALL_EXTENSION_ID
1830 $(error XPI_NAME must be set for INSTALL_EXTENSION_ID
)
1834 $(RM
) -rf
"$(DIST)/bin/extensions/$(INSTALL_EXTENSION_ID)"
1835 $(NSINSTALL
) -D
"$(DIST)/bin/extensions/$(INSTALL_EXTENSION_ID)"
1836 cd
$(FINAL_TARGET
) && tar $(TAR_CREATE_FLAGS
) - . |
(cd
"../../bin/extensions/$(INSTALL_EXTENSION_ID)" && tar -xf
-)
1840 ifneq (,$(filter flat symlink
,$(MOZ_CHROME_FILE_FORMAT
)))
1841 _JAR_REGCHROME_DISABLE_JAR
=1
1843 _JAR_REGCHROME_DISABLE_JAR
=0
1846 REGCHROME
= $(PERL
) -I
$(MOZILLA_DIR
)/config
$(MOZILLA_DIR
)/config
/add-chrome.pl \
1847 $(if
$(filter gtk2
,$(MOZ_WIDGET_TOOLKIT
)),-x
) \
1848 $(if
$(CROSS_COMPILE
),-o
$(OS_ARCH
)) $(FINAL_TARGET
)/chrome
/installed-chrome.txt \
1849 $(_JAR_REGCHROME_DISABLE_JAR
)
1851 REGCHROME_INSTALL
= $(PERL
) -I
$(MOZILLA_DIR
)/config
$(MOZILLA_DIR
)/config
/add-chrome.pl \
1852 $(if
$(filter gtk2
,$(MOZ_WIDGET_TOOLKIT
)),-x
) \
1853 $(if
$(CROSS_COMPILE
),-o
$(OS_ARCH
)) $(DESTDIR
)$(mozappdir
)/chrome
/installed-chrome.txt \
1854 $(_JAR_REGCHROME_DISABLE_JAR
)
1857 ################################################################################
1858 # Testing frameworks support
1859 ################################################################################
1863 ifdef XPCSHELL_TESTS
1865 $(error Must
define MODULE when defining XPCSHELL_TESTS.
)
1868 # Test file installation
1871 for testdir in
$(XPCSHELL_TESTS
); do \
1873 $(srcdir)/$$testdir/*.js \
1874 $(DEPTH
)/_tests
/xpcshell-simple
/$(MODULE
)/$$testdir; \
1877 # Path formats on Windows are hard. We require a topsrcdir formatted so that
1878 # it may be passed to nsILocalFile.initWithPath (in other words, an absolute
1879 # path of the form X:\path\to\topsrcdir), which we store in NATIVE_TOPSRCDIR.
1880 # We require a forward-slashed path to topsrcdir so that it may be combined
1881 # with a relative forward-slashed path for loading scripts, both dynamically
1882 # and statically for head/test/tail JS files. Of course, on non-Windows none
1883 # of this matters, and things will work correctly because everything's
1884 # forward-slashed, everywhere, always.
1885 ifdef CYGWIN_WRAPPER
1886 NATIVE_TOPSRCDIR
:= `cygpath -wa $(topsrcdir)`
1887 FWDSLASH_TOPSRCDIR
:= `cygpath -ma $(topsrcdir)`
1889 FWDSLASH_TOPSRCDIR
:= $(topsrcdir
)
1890 ifeq ($(HOST_OS_ARCH
),WINNT
)
1891 NATIVE_TOPSRCDIR
:= $(subst /,\\,$(WIN_TOP_SRC
))
1893 NATIVE_TOPSRCDIR
:= $(topsrcdir
)
1895 endif # CYGWIN_WRAPPER
1900 for testdir in
$(XPCSHELL_TESTS
); do \
1901 $(RUN_TEST_PROGRAM
) \
1902 $(topsrcdir
)/tools
/test-harness
/xpcshell-simple
/test_all.sh \
1903 $(DIST
)/bin
/xpcshell \
1904 $(FWDSLASH_TOPSRCDIR
) \
1905 $(NATIVE_TOPSRCDIR
) \
1906 $(DEPTH
)/_tests
/xpcshell-simple
/$(MODULE
)/$$testdir; \
1912 $(RUN_TEST_PROGRAM
) \
1913 $(topsrcdir
)/tools
/test-harness
/xpcshell-simple
/test_one.sh \
1914 $(DIST
)/bin
/xpcshell \
1915 $(FWDSLASH_TOPSRCDIR
) \
1916 $(NATIVE_TOPSRCDIR
) \
1917 $(DEPTH
)/_tests
/xpcshell-simple
/$(MODULE
)/$$testdir \
1923 $(RUN_TEST_PROGRAM
) \
1924 $(topsrcdir
)/tools
/test-harness
/xpcshell-simple
/test_one.sh \
1925 $(DIST
)/bin
/xpcshell \
1926 $(FWDSLASH_TOPSRCDIR
) \
1927 $(NATIVE_TOPSRCDIR
) \
1928 $(DEPTH
)/_tests
/xpcshell-simple
/$(MODULE
)/$$testdir \
1931 endif # XPCSHELL_TESTS
1933 endif # ENABLE_TESTS
1936 #############################################################################
1938 #############################################################################
1939 ifdef COMPILER_DEPEND
1941 @echo
"$(MAKE): No need to run depend target.\
1942 Using compiler-based depend." 1>&2
1943 ifeq ($(GNU_CC
)$(GNU_CXX
),)
1945 @echo
"`echo '$(MAKE):'|sed 's/./ /g'`"\
1946 '(Compiler-based depend was turned on by "--enable-md".)' 1>&2
1949 @space
="`echo '$(MAKE): '|sed 's/./ /g'`";\
1950 echo
"$$space"'Since you are using a GNU compiler,\
1951 it is on by default.' 1>&2; \
1952 echo
"$$space"'To turn it off, pass --disable-md to configure.' 1>&2
1955 else # ! COMPILER_DEPEND
1957 ifndef MOZ_AUTO_DEPS
1959 define MAKE_DEPS_NOAUTO
1960 $(MKDEPEND
) -w1024
-o
'.$(OBJ_SUFFIX)' -f-
$(DEFINES
) $(ACDEFINES
) $(INCLUDES
) $< 2>/dev
/null | sed
-e
"s|^[^ ]*/||" > $@
1963 $(MDDEPDIR
)/%.pp
: %.c
1965 @
$(MAKE_DEPS_NOAUTO
)
1967 $(MDDEPDIR
)/%.pp
: %.
cpp
1969 @
$(MAKE_DEPS_NOAUTO
)
1971 $(MDDEPDIR
)/%.pp
: %.s
1973 @
$(MAKE_DEPS_NOAUTO
)
1975 ifneq (,$(OBJS
)$(XPIDLSRCS
)$(SDK_XPIDLSRCS
)$(SIMPLE_PROGRAMS
))
1976 depend
:: $(SUBMAKEFILES
) $(MAKE_DIRS
) $(MDDEPFILES
)
1978 depend
:: $(SUBMAKEFILES
)
1981 +$(LOOP_OVER_TOOL_DIRS
)
1983 dependclean
:: $(SUBMAKEFILES
)
1986 +$(LOOP_OVER_TOOL_DIRS
)
1988 endif # MOZ_AUTO_DEPS
1990 endif # COMPILER_DEPEND
1993 #############################################################################
1994 # MDDEPDIR is the subdirectory where all the dependency files are placed.
1995 # This uses a make rule (instead of a macro) to support parallel
1996 # builds (-jN). If this were done in the LOOP_OVER_DIRS macro, two
1997 # processes could simultaneously try to create the same directory.
2000 @if
test ! -d
$@
; then echo Creating
$@
; rm -rf
$@
; mkdir
$@
; else true
; fi
2002 ifneq (,$(filter-out all chrome default
export realchrome tools
clean clobber clobber_all
distclean realclean,$(MAKECMDGOALS
)))
2003 ifneq (,$(OBJS
)$(XPIDLSRCS
)$(SDK_XPIDLSRCS
)$(SIMPLE_PROGRAMS
))
2004 MDDEPEND_FILES
:= $(strip $(wildcard $(MDDEPDIR
)/*.pp
))
2006 ifneq (,$(MDDEPEND_FILES
))
2008 # The script mddepend.pl checks the dependencies and writes to stdout
2009 # one rule to force out-of-date objects. For example,
2010 # foo.o boo.o: FORCE
2011 # The script has an advantage over including the *.pp files directly
2012 # because it handles the case when header files are removed from the build.
2013 # 'make' would complain that there is no way to build missing headers.
2014 ifeq (,$(MAKE_RESTARTS
))
2015 $(MDDEPDIR
)/.
all.pp
: FORCE
2016 @
$(PERL
) $(BUILD_TOOLS
)/mddepend.pl
$@
$(MDDEPEND_FILES
)
2018 -include $(MDDEPDIR
)/.
all.pp
2020 include $(MDDEPEND_FILES
)
2026 #############################################################################
2028 -include $(topsrcdir
)/$(MOZ_BUILD_APP
)/app-rules.mk
2029 -include $(MY_RULES
)
2032 # This speeds up gmake's processing if these files don't exist.
2034 $(MY_CONFIG
) $(MY_RULES
):
2038 # Generate Emacs tags in a file named TAGS if ETAGS was set in $(MY_CONFIG)
2042 ifneq ($(CSRCS
)$(CPPSRCS
)$(HEADERS
),)
2044 TAGS
:: $(CSRCS
) $(CPPSRCS
) $(HEADERS
)
2045 $(ETAGS
) $(CSRCS
) $(CPPSRCS
) $(HEADERS
)
2049 ################################################################################
2050 # Special gmake rules.
2051 ################################################################################
2055 # Disallow parallel builds with MSVC < 8
2057 ifneq (,$(filter 1200 1300 1310,$(_MSC_VER
)))
2062 # Re-define the list of default suffixes, so gmake won't have to churn through
2063 # hundreds of built-in suffix rules for stuff we don't need.
2068 # Fake targets. Always run these rules, even if a file/directory with that
2069 # name already exists.
2071 .PHONY
: all all_platforms alltags boot checkout chrome realchrome
clean clobber clobber_all
export install libs makefiles
realclean run_viewer run_apprunner tools
$(DIRS
) $(TOOL_DIRS
) FORCE
check check-interactive check-one
2073 # Used as a dependency to force targets to rebuild
2076 # Delete target if error occurs when building target
2079 # Properly set LIBPATTERNS for the platform
2080 .LIBPATTERNS
= $(if
$(IMPORT_LIB_SUFFIX
),$(LIB_PREFIX
)%.
$(IMPORT_LIB_SUFFIX
)) $(LIB_PREFIX
)%.
$(LIB_SUFFIX
) $(DLL_PREFIX
)%$(DLL_SUFFIX
)
2084 TAGS
: $(SUBMAKEFILES
) $(CSRCS
) $(CPPSRCS
) $(wildcard *.h
)
2085 -etags
$(CSRCS
) $(CPPSRCS
) $(wildcard *.h
)
2103 echo-requires-recursive
::
2104 ifdef _REPORT_ALL_DIRS
2105 @echo
$(subst $(topsrcdir
)/,,$(srcdir)): $(MODULE
): $(REQUIRES
)
2107 @
$(if
$(REQUIRES
),echo
$(subst $(topsrcdir
)/,,$(srcdir)): $(MODULE
): $(REQUIRES
))
2112 @
$(topsrcdir
)/build
/unix
/print-depth-path.sh
2115 @
$(topsrcdir
)/build
/package
/rpm
/print-module-name.sh
2117 echo-module-filelist
:
2118 @
$(topsrcdir
)/build
/package
/rpm
/print-module-filelist.sh
2121 ifneq (,$(filter $(PROGRAM
) $(HOST_PROGRAM
) $(SIMPLE_PROGRAMS
) $(HOST_LIBRARY
) $(LIBRARY
) $(SHARED_LIBRARY
),$(TARGETS
)))
2122 @echo
--------------------------------------------------------------------------------
2123 @echo
"PROGRAM = $(PROGRAM)"
2124 @echo
"SIMPLE_PROGRAMS = $(SIMPLE_PROGRAMS)"
2125 @echo
"LIBRARY = $(LIBRARY)"
2126 @echo
"SHARED_LIBRARY = $(SHARED_LIBRARY)"
2127 @echo
"SHARED_LIBRARY_LIBS = $(SHARED_LIBRARY_LIBS)"
2128 @echo
"LIBS = $(LIBS)"
2129 @echo
"DEF_FILE = $(DEF_FILE)"
2130 @echo
"IMPORT_LIBRARY = $(IMPORT_LIBRARY)"
2131 @echo
"STATIC_LIBS = $(STATIC_LIBS)"
2132 @echo
"SHARED_LIBS = $(SHARED_LIBS)"
2133 @echo
"EXTRA_DSO_LIBS = $(EXTRA_DSO_LIBS)"
2134 @echo
"EXTRA_DSO_LDOPTS = $(EXTRA_DSO_LDOPTS)"
2135 @echo
"DEPENDENT_LIBS = $(DEPENDENT_LIBS)"
2136 @echo
--------------------------------------------------------------------------------
2141 @echo
"MOZ_BUILD_ROOT = $(MOZ_BUILD_ROOT)"
2142 @echo
"MOZ_WIDGET_TOOLKIT = $(MOZ_WIDGET_TOOLKIT)"
2144 @echo
"CXX = $(CXX)"
2145 @echo
"CCC = $(CCC)"
2146 @echo
"CPP = $(CPP)"
2149 @echo
"IMPLIB = $(IMPLIB)"
2150 @echo
"FILTER = $(FILTER)"
2151 @echo
"MKSHLIB = $(MKSHLIB)"
2152 @echo
"MKCSHLIB = $(MKCSHLIB)"
2154 @echo
"CFLAGS = $(CFLAGS)"
2155 @echo
"OS_CFLAGS = $(OS_CFLAGS)"
2156 @echo
"COMPILE_CFLAGS = $(COMPILE_CFLAGS)"
2157 @echo
"CXXFLAGS = $(CXXFLAGS)"
2158 @echo
"OS_CXXFLAGS = $(OS_CXXFLAGS)"
2159 @echo
"COMPILE_CXXFLAGS = $(COMPILE_CXXFLAGS)"
2160 @echo
"COMPILE_CMFLAGS = $(COMPILE_CMFLAGS)"
2161 @echo
"COMPILE_CMMFLAGS = $(COMPILE_CMMFLAGS)"
2162 @echo
"LDFLAGS = $(LDFLAGS)"
2163 @echo
"OS_LDFLAGS = $(OS_LDFLAGS)"
2164 @echo
"DSO_LDOPTS = $(DSO_LDOPTS)"
2165 @echo
"OS_INCLUDES = $(OS_INCLUDES)"
2166 @echo
"OS_LIBS = $(OS_LIBS)"
2167 @echo
"EXTRA_LIBS = $(EXTRA_LIBS)"
2168 @echo
"BIN_FLAGS = $(BIN_FLAGS)"
2169 @echo
"INCLUDES = $(INCLUDES)"
2170 @echo
"DEFINES = $(DEFINES)"
2171 @echo
"ACDEFINES = $(ACDEFINES)"
2172 @echo
"BIN_SUFFIX = $(BIN_SUFFIX)"
2173 @echo
"LIB_SUFFIX = $(LIB_SUFFIX)"
2174 @echo
"DLL_SUFFIX = $(DLL_SUFFIX)"
2175 @echo
"IMPORT_LIB_SUFFIX = $(IMPORT_LIB_SUFFIX)"
2176 @echo
"INSTALL = $(INSTALL)"
2179 @echo
"HOST_CC = $(HOST_CC)"
2180 @echo
"HOST_CXX = $(HOST_CXX)"
2181 @echo
"HOST_CFLAGS = $(HOST_CFLAGS)"
2182 @echo
"HOST_LDFLAGS = $(HOST_LDFLAGS)"
2183 @echo
"HOST_LIBS = $(HOST_LIBS)"
2184 @echo
"HOST_EXTRA_LIBS = $(HOST_EXTRA_LIBS)"
2185 @echo
"HOST_EXTRA_DEPS = $(HOST_EXTRA_DEPS)"
2186 @echo
"HOST_PROGRAM = $(HOST_PROGRAM)"
2187 @echo
"HOST_OBJS = $(HOST_OBJS)"
2188 @echo
"HOST_PROGOBJS = $(HOST_PROGOBJS)"
2189 @echo
"HOST_LIBRARY = $(HOST_LIBRARY)"
2192 @echo
"Build Modules = $(BUILD_MODULES)"
2193 @echo
"Module dirs = $(BUILD_MODULE_DIRS)"
2196 ifneq (,$(filter $(PROGRAM
) $(SIMPLE_PROGRAMS
) $(LIBRARY
) $(SHARED_LIBRARY
),$(TARGETS
)))
2197 zip
$(DEPTH
)/makefiles
$(subst $(topsrcdir
),$(MOZ_SRC
)/mozilla
,$(srcdir)/Makefile.in
)
2203 $(DOXYGEN
) $(DEPTH
)/config
/doxygen.cfg
2205 check:: $(SUBMAKEFILES
) $(MAKE_DIRS
)
2207 +$(LOOP_OVER_TOOL_DIRS
)