Bug 452390 Tracemonkey will crash if the compiler doesn't have FASTCALL r=danderson
[wine-gecko.git] / embedding / config / Makefile.in
blob6d6710d7a599dd55789351d088dc8d075fc01974
1 #
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 the Mozilla browser.
17 # The Initial Developer of the Original Code is
18 # Christopher Blizzard.
19 # Portions created by the Initial Developer are Copyright (C) 2001
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 include $(DEPTH)/config/autoconf.mk
44 include $(topsrcdir)/config/rules.mk
46 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
47 BASEBROWSER = basebrowser-mac-macho
48 CLIENTMANIFEST = client-mac-macho
49 _PLATFORM = unix
50 else
51 ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
52 BASEBROWSER = basebrowser-win
53 BASEBROWSER_SUPP = basebrowser-win-supp
54 CLIENTMANIFEST = client-win
55 GREMANIFEST = gre-win
56 GREMANIFEST_SUPP = gre-win-supp
57 _PLATFORM = dos
58 WINAPP=mfcembed
59 #WINAPP=winembed
60 else
61 BASEBROWSER = basebrowser-unix
62 CLIENTMANIFEST = client-unix
63 _PLATFORM = unix
64 endif
65 endif
68 embed_chrome: embed-jar.mn
69 ifneq (jar,$(MOZ_CHROME_FILE_FORMAT))
70 $(PERL) -I$(srcdir) $(srcdir)/gen_mn.pl -manifest $(MOZILLA_DIR)/embedding/config/embed-jar.mn -mozpath $(MOZILLA_DIR) -chrome $(DIST)/bin/chrome > embed-tmp.mn
71 $(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl -a -v -f $(MOZ_CHROME_FILE_FORMAT) -d $(DIST)/bin/chrome -s $(DIST)/bin/chrome < embed-tmp.mn
72 -$(RM) -f embed-tmp.mn
73 else
74 -$(RM) -rf $(DIST)/Embed/tmpchrome
75 for f in $(DIST)/bin/chrome/*.jar; do \
76 b=`basename $$f | sed -e 's|.jar$$||'` ; \
77 echo "$$b" ; \
78 $(NSINSTALL) -D $(DIST)/Embed/tmpchrome/$$b ;\
79 $(UNZIP) -q -o -d $(DIST)/Embed/tmpchrome/$$b $$f ; \
80 done
81 $(PERL) -I$(srcdir) $(srcdir)/gen_mn.pl -manifest $(MOZILLA_DIR)/embedding/config/embed-jar.mn -mozpath $(MOZILLA_DIR) -chrome $(DIST)/Embed/tmpchrome > embed-tmp.mn
82 $(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl -a -v -f $(MOZ_CHROME_FILE_FORMAT) -d $(DIST)/bin/chrome -s $(DIST)/Embed/tmpchrome -z $(ZIP) < embed-tmp.mn
83 -$(RM) -f embed-tmp.mn
84 -$(RM) -rf $(DIST)/Embed/tmpchrome
85 endif
87 embed_copy::
88 -mkdir $(DIST)/Embed/defaults/
89 -mkdir $(DIST)/Embed/defaults/pref
90 -cp $(srcdir)/all.js $(DIST)/Embed/defaults/pref
91 $(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(srcdir)/$(BASEBROWSER) -o $(_PLATFORM) -v
92 ifeq ($(OS_ARCH),WINNT)
93 $(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(srcdir)/$(BASEBROWSER_SUPP) -o $(_PLATFORM) -v
94 endif
95 if test -f "$(srcdir)/$(CLIENTMANIFEST)"; then \
96 $(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(srcdir)/$(CLIENTMANIFEST) -o $(_PLATFORM) -v; \
98 $(NSINSTALL) -t $(srcdir)/installed-chrome.txt $(DIST)/Embed/chrome
99 $(NSINSTALL) -t $(srcdir)/readme.html $(DIST)/Embed
100 -$(NSINSTALL) -t $(DEPTH)/embedding/lite/$(LIB_PREFIX)embed_lite$(DLL_SUFFIX) $(DIST)/Embed/components
101 ifeq ($(OS_ARCH),WINNT)
102 ifeq ($(WINAPP),mfcembed)
103 $(NSINSTALL) -t $(DIST)/bin/mfcembed.exe $(DIST)/Embed
104 $(NSINSTALL) -t $(DIST)/bin/mfcEmbedComponents.dll $(DIST)/Embed
105 else
106 ifeq ($(WINAPP),winembed)
107 $(NSINSTALL) -t $(DIST)/bin/winembed.exe $(DIST)/Embed
108 endif
109 endif
110 ifdef MOZ_DEBUG
111 $(NSINSTALL) -t $(DIST)/bin/windbgdlg.exe $(DIST)/Embed
112 endif
113 endif # WINNT
115 merge_xpt::
116 $(XPIDL_LINK) $(DIST)/Embed/components/xpt_tmp $(DIST)/Embed/components/*.xpt
117 $(RM) $(DIST)/Embed/components/*.xpt
118 mv $(DIST)/Embed/components/xpt_tmp $(DIST)/Embed/components/all.xpt
119 libs::
120 $(MAKE) embed_chrome
121 $(MAKE) embed_copy
123 ifeq ($(OS_ARCH),WINNT)
124 gre_copy::
125 $(PERL) -I$(srcdir) $(srcdir)/gre.pl gre < $(srcdir)/$(BASEBROWSER) > $(MOZILLA_DIR)/embedding/config/gre-win.tmp
126 $(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(MOZILLA_DIR)/embedding/config/gre-win.tmp -o $(_PLATFORM) -v
127 -$(RM) -f $(MOZILLA_DIR)/embedding/config/gre-win.tmp
128 $(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(srcdir)/$(GREMANIFEST) -o $(_PLATFORM) -v
129 $(PERL) -I$(srcdir) $(srcdir)/gre.pl gre_app_support < $(srcdir)/$(BASEBROWSER_SUPP) > $(MOZILLA_DIR)/embedding/config/gre-win-supp.tmp
130 $(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(MOZILLA_DIR)/embedding/config/gre-win-supp.tmp -o $(_PLATFORM) -v
131 -$(RM) -f $(MOZILLA_DIR)/embedding/config/gre-win-supp.tmp
132 $(PERL) $(topsrcdir)/xpinstall/packager/pkgcp.pl -s $(DIST)/bin -d $(DIST) --f $(srcdir)/$(GREMANIFEST_SUPP) -o $(_PLATFORM) -v
133 $(NSINSTALL) -t $(srcdir)/installed-chrome.txt $(DIST)/gre_app_support/chrome
134 test -d $(DIST)/gre_app_support/plugins || mkdir $(DIST)/gre_app_support/plugins
135 test -d $(DIST)/gre_app_support/components || mkdir $(DIST)/gre_app_support/components
137 gre::
138 $(MAKE) embed_chrome
139 $(MAKE) gre_copy
141 endif # WINNT