Bug 894941 - Patch the speex resampler to do runtime checks for SSE. r=ehsan,glandium
[gecko.git] / memory / jemalloc / Makefile.in
blob42b083e34283a96f25b42537d68f79038076f262
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/.
5 DEPTH = @DEPTH@
6 topsrcdir = @top_srcdir@
7 srcdir = @srcdir@
9 VPATH = $(srcdir) $(srcdir)/src/src
11 include $(DEPTH)/config/autoconf.mk
13 FORCE_STATIC_LIB = 1
15 ifdef MOZ_GLUE_PROGRAM_LDFLAGS
16 SDK_LIBRARY = $(REAL_LIBRARY)
17 DIST_INSTALL = 1
18 endif
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))
25 endif
27 include $(topsrcdir)/config/rules.mk
29 LOCAL_INCLUDES += \
30 -I$(srcdir)/src/include \
31 -Isrc/include \
32 $(NULL)
34 ifdef _MSC_VER
35 LOCAL_INCLUDES += -I$(srcdir)/src/include/msvc_compat
37 DEFINES += -DDLLEXPORT
38 endif
40 ifeq ($(OS_TARGET),Linux)
41 # For mremap
42 DEFINES += -D_GNU_SOURCE
43 endif
45 ifdef GNU_CC
46 CFLAGS += -std=gnu99
47 endif
49 DEFINES += -Dabort=moz_abort