1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 topsrcdir
= @top_srcdir@
10 include $(DEPTH
)/config
/autoconf.mk
14 # Statically link against the RTL on windows
16 # Don't create a dependency on mozglue
19 CPPSRCS
= nsXULStub.
cpp
21 # The value of XULRUNNER_STUB_NAME is generated by configure to allow XULRunner
22 # apps to override it using the --with-xulrunner-stub-name=<appname> argument.
23 # If this configure argument is not present then the default name is 'xulrunner'
24 # for Mac OS X and 'xulrunner-stub' for all other platforms.
25 PROGRAM
= $(XULRUNNER_STUB_NAME
)$(BIN_SUFFIX
)
28 -I
$(topsrcdir
)/xpcom
/build \
29 -I
$(topsrcdir
)/xpcom
/base \
32 DEFINES
+= -DXPCOM_GLUE
36 $(XPCOM_STANDALONE_STATICRUNTIME_GLUE_LDOPTS
) \
39 # Need to link with CoreFoundation on Mac
40 ifeq (cocoa
,$(MOZ_WIDGET_TOOLKIT
))
46 ifeq ($(OS_ARCH
),WINNT
)
47 RCINCLUDE
= xulrunner-stub.rc
49 RCFLAGS
+= -DMOZ_XULRUNNER
-I
$(srcdir)
51 RCFLAGS
+= -DMOZ_XULRUNNER
--include-dir
$(srcdir)
53 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/toolkit
/xre
64 include $(topsrcdir
)/config
/config.mk
67 WIN32_EXE_LDFLAGS
+= -ENTRY
:wmainCRTStartup
70 include $(topsrcdir
)/config
/rules.mk
72 ifeq ($(OS_ARCH
),WINNT
)
73 OS_LIBS
+= $(call EXPAND_LIBNAME
,shell32
)
76 ifeq (cocoa
,$(MOZ_WIDGET_TOOLKIT
))
79 FRAMEWORK_VERSION
= $(MOZILLA_VERSION
)
82 $(DIST
)/$(FRAMEWORK_NAME
).framework
/Versions
/$(FRAMEWORK_VERSION
)
87 $(FRAMEWORK_DIR
)/$(PROGRAM
): $(PROGRAM
) $(FRAMEWORK_DIR
)
88 $(NSINSTALL
) $(PROGRAM
) $(FRAMEWORK_DIR
)
90 libs
:: $(FRAMEWORK_DIR
)/$(PROGRAM
)