2001-09-08 18:29:24 +00:00
|
|
|
#
|
2004-04-25 21:07:34 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2001-09-08 18:29:24 +00:00
|
|
|
#
|
2004-04-25 21:07:34 +00:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
2001-09-08 18:29:24 +00:00
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-25 21:07:34 +00:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
2001-09-08 18:29:24 +00:00
|
|
|
#
|
2004-04-25 21:07:34 +00:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-08 18:29:24 +00:00
|
|
|
#
|
2004-04-25 21:07:34 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2001-09-08 18:29:24 +00:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
|
2002-04-16 23:36:47 +00:00
|
|
|
SIMPLECSRCS += \
|
2001-09-08 18:29:24 +00:00
|
|
|
bloatblame.c \
|
|
|
|
leakstats.c \
|
2002-10-26 00:21:42 +00:00
|
|
|
tmstats.c \
|
2002-04-16 23:36:47 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2007-08-20 00:00:40 +00:00
|
|
|
# Set CPP_PROG_LINK manually since we're using SIMPLECPPSRCS rather than
|
|
|
|
# CPPSRCS.
|
|
|
|
CPP_PROG_LINK = 1
|
|
|
|
|
2003-01-18 16:24:55 +00:00
|
|
|
SIMPLECPPSRCS = \
|
|
|
|
leaksoup.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SIMPLE_PROGRAMS = \
|
|
|
|
$(SIMPLECSRCS:.c=$(BIN_SUFFIX)) \
|
|
|
|
$(SIMPLECPPSRCS:.cpp=$(BIN_SUFFIX)) \
|
|
|
|
$(NULL)
|
2002-04-16 23:36:47 +00:00
|
|
|
|
|
|
|
CSRCS = \
|
2001-11-15 22:40:53 +00:00
|
|
|
spacetrace.c \
|
2002-04-16 23:36:47 +00:00
|
|
|
spacecategory.c \
|
2002-05-11 01:24:52 +00:00
|
|
|
formdata.c \
|
2001-09-08 18:29:24 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2002-05-02 19:43:09 +00:00
|
|
|
PROGRAM = spacetrace$(BIN_SUFFIX)
|
2001-09-08 18:29:24 +00:00
|
|
|
|
2002-02-14 22:56:03 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/config/os2
|
|
|
|
endif
|
|
|
|
|
2001-09-08 18:29:24 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2007-08-20 01:30:04 +00:00
|
|
|
ifdef MOZ_ENABLE_LIBXUL
|
2009-09-19 02:59:53 +00:00
|
|
|
ifneq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-08-20 01:30:04 +00:00
|
|
|
EXTRA_DSO_LIBS = xul
|
|
|
|
endif
|
|
|
|
endif
|
2003-01-15 20:40:06 +00:00
|
|
|
|
2001-09-08 18:29:24 +00:00
|
|
|
LIBS += \
|
2002-02-14 22:56:03 +00:00
|
|
|
$(LIBS_DIR) \
|
|
|
|
tmreader.$(OBJ_SUFFIX) \
|
2003-01-18 16:24:55 +00:00
|
|
|
adreader.$(OBJ_SUFFIX) \
|
2003-01-15 20:40:06 +00:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2006-08-10 16:38:00 +00:00
|
|
|
$(XPCOM_GLUE_LDOPTS) \
|
2001-09-08 18:29:24 +00:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-08-20 01:30:04 +00:00
|
|
|
ifdef MOZ_ENABLE_LIBXUL
|
2009-09-19 02:59:53 +00:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-08-20 01:30:04 +00:00
|
|
|
LIBS += $(DIST)/bin/XUL
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2001-11-15 22:40:53 +00:00
|
|
|
ifdef HAVE_BOUTELL_GD
|
2002-04-16 21:50:01 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I"$(HAVE_BOUTELL_GD)" \
|
|
|
|
$(NULL)
|
|
|
|
LIBS += \
|
|
|
|
-lmozz_s \
|
|
|
|
"$(HAVE_BOUTELL_GD)/gd.lib" \
|
|
|
|
$(NULL)
|
|
|
|
else
|
2001-11-15 22:40:53 +00:00
|
|
|
LIBS += \
|
|
|
|
-lgd \
|
|
|
|
$(NULL)
|
2002-04-16 21:50:01 +00:00
|
|
|
endif
|
2001-11-15 22:40:53 +00:00
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-DHAVE_BOUTELL_GD \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2003-01-18 16:24:55 +00:00
|
|
|
EXTRA_DEPS = tmreader.$(OBJ_SUFFIX) adreader.$(OBJ_SUFFIX)
|
|
|
|
GARBAGE += tmreader.$(OBJ_SUFFIX) adreader.$(OBJ_SUFFIX)
|
2001-09-08 18:29:24 +00:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2002-04-17 01:03:44 +00:00
|
|
|
|
|
|
|
# install rules.txt along with spacetrace executable
|
|
|
|
libs:: rules.txt
|
|
|
|
$(INSTALL) $< $(DIST)/bin
|
2003-04-17 07:36:28 +00:00
|
|
|
|
|
|
|
libs:: spacetrace.css
|
|
|
|
$(INSTALL) $< $(DIST)/bin/res
|
|
|
|
|