backout 29799f914cab, Bug 917642 - [Helix] Please update the helix blobs
[gecko.git] / xulrunner / stub / Makefile.in
blobbba6c240ba1a1190b488c3294429ea51fd4d454f
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/.
5 # Statically link against the RTL on windows
6 USE_STATIC_LIBS = 1
7 # Don't create a dependency on mozglue
8 MOZ_GLUE_LDFLAGS =
10 LOCAL_INCLUDES = \
11 -I$(topsrcdir)/xpcom/build \
12 -I$(topsrcdir)/xpcom/base \
13 $(NULL)
15 DEFINES += -DXPCOM_GLUE
16 STL_FLAGS=
18 LIBS = \
19 $(XPCOM_STANDALONE_STATICRUNTIME_GLUE_LDOPTS) \
20 $(NULL)
22 # Need to link with CoreFoundation on Mac
23 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
24 LIBS += \
25 $(TK_LIBS) \
26 $(NULL)
27 endif
29 ifeq ($(OS_ARCH),WINNT)
30 RCINCLUDE = xulrunner-stub.rc
31 ifndef GNU_CC
32 RCFLAGS += -DMOZ_XULRUNNER -I$(srcdir)
33 else
34 RCFLAGS += -DMOZ_XULRUNNER --include-dir $(srcdir)
35 endif
36 LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
37 endif
39 ifndef MOZ_WINCONSOLE
40 ifdef MOZ_DEBUG
41 MOZ_WINCONSOLE = 1
42 else
43 MOZ_WINCONSOLE = 0
44 endif
45 endif
47 include $(topsrcdir)/config/config.mk
49 ifdef _MSC_VER
50 WIN32_EXE_LDFLAGS += -ENTRY:wmainCRTStartup
51 endif
53 include $(topsrcdir)/config/rules.mk
55 ifeq ($(OS_ARCH),WINNT)
56 OS_LIBS += $(call EXPAND_LIBNAME,shell32)
57 endif