2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
|
|
|
|
SIMPLECSRCS += \
|
|
|
|
leakstats.c \
|
|
|
|
tmstats.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SIMPLECPPSRCS = \
|
|
|
|
leaksoup.cpp \
|
2011-09-28 23:19:26 -07:00
|
|
|
bloatblame.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SIMPLE_PROGRAMS = \
|
|
|
|
$(SIMPLECSRCS:.c=$(BIN_SUFFIX)) \
|
|
|
|
$(SIMPLECPPSRCS:.cpp=$(BIN_SUFFIX)) \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-05-14 22:44:32 -07:00
|
|
|
EXTRACSRCS = tmreader.c
|
|
|
|
EXTRACPPSRCS = adreader.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-04-14 02:23:13 -07:00
|
|
|
ifndef MOZ_PROFILE_GENERATE
|
2007-03-22 10:30:00 -07:00
|
|
|
PROGRAM = spacetrace$(BIN_SUFFIX)
|
2012-05-14 22:44:32 -07:00
|
|
|
|
|
|
|
PROGCSRCS = \
|
|
|
|
spacetrace.c \
|
|
|
|
spacecategory.c \
|
|
|
|
formdata.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
PROGOBJS = $(PROGCSRCS:.c=.$(OBJ_SUFFIX))
|
2011-04-14 02:23:13 -07:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-05-14 22:44:32 -07:00
|
|
|
CSRCS = $(SIMPLECSRCS) $(EXTRACSRCS) $(PROGCSRCS)
|
|
|
|
CPPSRCS = $(SIMPLECPPSRCS) $(EXTRACPPSRCS)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/config/os2
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2009-09-18 19:59:53 -07:00
|
|
|
ifneq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-08-19 18:30:04 -07:00
|
|
|
EXTRA_DSO_LIBS = xul
|
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
LIBS += \
|
|
|
|
$(LIBS_DIR) \
|
|
|
|
tmreader.$(OBJ_SUFFIX) \
|
|
|
|
adreader.$(OBJ_SUFFIX) \
|
|
|
|
$(XPCOM_GLUE_LDOPTS) \
|
2010-07-16 23:52:30 -07:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-09-18 19:59:53 -07:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-08-19 18:30:04 -07:00
|
|
|
LIBS += $(DIST)/bin/XUL
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifdef HAVE_BOUTELL_GD
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I"$(HAVE_BOUTELL_GD)" \
|
|
|
|
$(NULL)
|
|
|
|
LIBS += \
|
|
|
|
-lmozz_s \
|
|
|
|
"$(HAVE_BOUTELL_GD)/gd.lib" \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
LIBS += \
|
|
|
|
-lgd \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-DHAVE_BOUTELL_GD \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-05-14 22:44:32 -07:00
|
|
|
EXTRA_DEPS = $(EXTRACSRCS:.c=.$(OBJ_SUFFIX)) $(EXTRACPPSRCS:.cpp=.$(OBJ_SUFFIX))
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
# install rules.txt along with spacetrace executable
|
|
|
|
libs:: rules.txt
|
|
|
|
$(INSTALL) $< $(DIST)/bin
|
|
|
|
|
|
|
|
libs:: spacetrace.css
|
|
|
|
$(INSTALL) $< $(DIST)/bin/res
|
|
|
|
|