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 file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
6 topsrcdir
= @top_srcdir@
9 VPATH
= $(srcdir) $(srcdir)/src
/src
11 include $(DEPTH
)/config
/autoconf.mk
15 ifdef MOZ_GLUE_PROGRAM_LDFLAGS
16 SDK_LIBRARY
= $(REAL_LIBRARY
)
20 DISABLED_CSRCS
:= $(notdir $(wildcard $(srcdir)/src
/src
/*.c
))
21 # Only OSX needs the zone allocation implementation, but only if
22 # replace-malloc is not enabled.
23 ifneq ($(OS_TARGET
)$(MOZ_REPLACE_MALLOC
),Darwin
)
24 DISABLED_CSRCS
:= $(filter-out zone.c
,$(CSRCS
))
27 include $(topsrcdir
)/config
/rules.mk
30 -I
$(srcdir)/src
/include \
35 LOCAL_INCLUDES
+= -I
$(srcdir)/src
/include/msvc_compat
37 DEFINES
+= -DDLLEXPORT
40 ifeq ($(OS_TARGET
),Linux
)
42 DEFINES
+= -D_GNU_SOURCE
49 DEFINES
+= -Dabort
=moz_abort