#
# 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

MODULE		= tracemalloc
LIBRARY_NAME	= tracemalloc
EXPORT_LIBRARY	= 1
DEFFILE		= $(win_srcdir)/tm.def

FORCE_STATIC_LIB = 1

LIBXUL_LIBRARY	= 1

STL_FLAGS	=

CSRCS		= \
		nsTraceMalloc.c \
		$(NULL)

CPPSRCS		= \
		nsTypeInfo.cpp \
		$(NULL)

EXPORTS         = nsTraceMalloc.h

ifeq ($(OS_ARCH),WINNT)
CPPSRCS		+= nsDebugHelpWin32.cpp nsWinTraceMalloc.cpp
endif

DEFINES		+= -DMOZ_NO_MOZALLOC

ifdef WRAP_SYSTEM_INCLUDES
DEFINES		+= -DWRAP_SYSTEM_INCLUDES
endif

include $(topsrcdir)/config/rules.mk

