memory/mozalloc/Makefile.in
author Mike Shal <mshal@mozilla.com>
Tue, 23 Apr 2013 17:54:15 -0400
changeset 144532 6e45e9f62d2171419a8d8780ad4779ff0488ccb5
parent 143241 0db9c45c8bde2a553cf4f8bcb62707ad359838c0
child 147249 d4f61f0a66fd084876fc00fbbfbae9532801d29a
permissions -rw-r--r--
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001

#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

VISIBILITY_FLAGS=
STL_FLAGS	=
ifdef _MSC_VER
STL_FLAGS	= -D_HAS_EXCEPTIONS=0
endif

LIBRARY_NAME	= mozalloc
DIST_INSTALL 	= 1

ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
FORCE_STATIC_LIB= 1
else
FORCE_SHARED_LIB= 1
endif

# TODO: we do this in crashreporter and storage/src too, should be centralized
ifeq ($(OS_ARCH),Linux)
DEFINES += -DXP_LINUX
endif

ifeq (,$(filter-out OS2,$(OS_ARCH)))
# The strndup declaration in string.h is in an ifdef __USE_GNU section
DEFINES		+= -D_GNU_SOURCE
endif

ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
SDK_LIBRARY = $(IMPORT_LIBRARY)
else
SDK_LIBRARY = $(SHARED_LIBRARY)
endif

LOCAL_INCLUDES += -I$(DEPTH)/xpcom

include $(topsrcdir)/config/rules.mk