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
19 -I
$(srcdir)/..
/..
/build \
23 $(LIB_PREFIX
)xpcomglue_s_nomozalloc.
$(LIB_SUFFIX
) \
26 GARBAGE
+= $(CPPSRCS
) DeadlockDetector.h SSE.h arm.h
28 # we don't want the shared lib, but we want to force the creation of a static lib.
31 # Pretend we're statically linking the CRT, even though we might not be: this
32 # avoids "msvcrp" and assembly dependencies from creeping into the directives
33 # for this library on Windows.
36 # Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
39 include $(topsrcdir
)/config
/rules.mk
42 # Don't include directives about which CRT to use
43 OS_COMPILE_CXXFLAGS
+= -Zl
44 OS_COMPILE_CFLAGS
+= -Zl
45 DEFINES
+= -D_USE_ANSI_CPP
48 export:: $(XPCOM_GLUE_SRC_CPPSRCS
) $(XPCOM_GLUENS_SRC_CPPSRCS
) $(topsrcdir
)/xpcom
/glue
/nsStringAPI.
cpp $(topsrcdir
)/xpcom
/glue
/GenericModule.
cpp $(topsrcdir
)/xpcom
/glue
/DeadlockDetector.h
51 ifdef TARGET_XPCOM_ABI
52 DEFINES
+= -DTARGET_XPCOM_ABI
=\"$(TARGET_XPCOM_ABI
)\"
55 DEFINES
+= -DMOZ_NO_MOZALLOC