Bug 470521, patcher and verify configs for Firefox 2.0.0.20 --> 3.0.5 major update...
[mozilla-1.9.git] / modules / staticmod / Makefile.in
bloba9eca7c3ed39edbaaa208566bc78fe4244a5df05
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 # This makefile links all the static components which have EXPORT_LIBRARY
39 # set into a single component DLL.
41 DEPTH = ../..
42 topsrcdir = @top_srcdir@
43 srcdir = @srcdir@
44 VPATH = @srcdir@
46 include $(DEPTH)/config/autoconf.mk
48 LIBRARY_NAME = appmeta
49 IS_COMPONENT = 1
50 FORCE_SHARED_LIB = 1
52 CPPSRCS = nsMetaModule.cpp
54 REQUIRES = xpcom
56 include $(topsrcdir)/config/config.mk
58 FINAL_COMPONENT_LIBS := $(shell cat $(FINAL_LINK_COMPS))
59 FINAL_LINK_LIBS := $(shell cat $(FINAL_LINK_LIBS))
61 SHARED_LIBRARY_LIBS = \
62 $(foreach c,$(FINAL_COMPONENT_LIBS),$(DIST)/lib/components/$(LIB_PREFIX)$(c).$(LIB_SUFFIX)) \
63 $(foreach l,$(FINAL_LINK_LIBS),$(DIST)/lib/$(LIB_PREFIX)$(l).$(LIB_SUFFIX)) \
64 $(NULL)
66 EXTRA_DSO_LDOPTS = \
67 $(XPCOM_GLUE_LDOPTS) \
68 $(NSPR_LIBS) \
69 $(NULL)
71 include $(topsrcdir)/config/rules.mk
73 DEFINES += -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT
75 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
76 OS_LIBS += -framework QuickTime
77 endif
79 ifeq ($(OS_ARCH),WINNT)
80 OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool imm32)
81 # XXX temporary workaround until link ordering issue is solved
82 ifdef GNU_CC
83 OS_LIBS += $(call EXPAND_LIBNAME,winmm wsock32 gdi32)
84 endif
85 OS_LIBS += $(call EXPAND_LIBNAME, usp10)
86 endif
88 ifneq (,$(MOZ_ENABLE_GTK2))
89 OS_LIBS += $(XLDFLAGS) $(XT_LIBS)
90 endif
92 OS_LIBS += $(TK_LIBS)
94 GARBAGE += module_list.h
96 LOCAL_INCLUDES += -I.
98 FINAL_COMPONENT_NAMES := $(shell cat $(FINAL_LINK_COMP_NAMES))
100 nsMetaModule.$(OBJ_SUFFIX): module_list.h
102 module_list.h: Makefile Makefile.in $(DEPTH)/config/autoconf.mk
103 echo '#define MODULES \' > $@
104 awk '{ print "MODULE(" $$1 ") \\" }' < $(FINAL_LINK_COMP_NAMES) >> $@
105 echo >> $@