1
# vim:set ts=8 sw=8 sts=8 noet:
2
# This Source Code Form is subject to the terms of the Mozilla Public
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
topsrcdir = @top_srcdir@
11
include $(DEPTH)/config/autoconf.mk
12
include $(srcdir)/../objs.mk
14
EXTRA_DEPS += $(srcdir)/../objs.mk
17
LIBRARY_NAME = xpcomglue_s_nomozalloc
21
-I$(srcdir)/../../build \
25
$(XPCOM_GLUE_SRC_LCPPSRCS) \
26
$(XPCOM_GLUENS_SRC_LCPPSRCS) \
32
$(LIB_PREFIX)xpcomglue_s_nomozalloc.$(LIB_SUFFIX) \
35
GARBAGE += $(CPPSRCS) DeadlockDetector.h SSE.h arm.h
37
# we don't want the shared lib, but we want to force the creation of a static lib.
40
# Pretend we're statically linking the CRT, even though we might not be: this
41
# avoids "msvcrp" and assembly dependencies from creeping into the directives
42
# for this library on Windows.
45
# Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
48
include $(topsrcdir)/config/rules.mk
51
# Don't include directives about which CRT to use
52
OS_COMPILE_CXXFLAGS += -Zl
53
OS_COMPILE_CFLAGS += -Zl
54
DEFINES += -D_USE_ANSI_CPP
57
export:: $(XPCOM_GLUE_SRC_CPPSRCS) $(XPCOM_GLUENS_SRC_CPPSRCS) $(topsrcdir)/xpcom/glue/nsStringAPI.cpp $(topsrcdir)/xpcom/glue/GenericModule.cpp $(topsrcdir)/xpcom/glue/DeadlockDetector.h $(topsrcdir)/xpcom/glue/SSE.h $(topsrcdir)/xpcom/glue/arm.h
60
ifdef TARGET_XPCOM_ABI
61
DEFINES += -DTARGET_XPCOM_ABI=\"$(TARGET_XPCOM_ABI)\"
64
DEFINES += -DMOZ_NO_MOZALLOC