2001-09-08 22:29:24 +04:00
|
|
|
#
|
2004-04-26 01:07:34 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2001-09-08 22:29:24 +04:00
|
|
|
#
|
2004-04-26 01:07:34 +04: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 22:29:24 +04:00
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-26 01:07:34 +04: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 22:29:24 +04:00
|
|
|
#
|
2004-04-26 01:07:34 +04: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 22:29:24 +04:00
|
|
|
#
|
2004-04-26 01:07:34 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2001-09-08 22:29:24 +04:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
|
2002-04-17 03:36:47 +04:00
|
|
|
SIMPLECSRCS += \
|
2001-09-08 22:29:24 +04:00
|
|
|
bloatblame.c \
|
|
|
|
leakstats.c \
|
2002-10-26 04:21:42 +04:00
|
|
|
tmstats.c \
|
2002-04-17 03:36:47 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2007-08-20 04:00:40 +04:00
|
|
|
# Set CPP_PROG_LINK manually since we're using SIMPLECPPSRCS rather than
|
|
|
|
# CPPSRCS.
|
|
|
|
CPP_PROG_LINK = 1
|
|
|
|
|
2003-01-18 19:24:55 +03:00
|
|
|
SIMPLECPPSRCS = \
|
|
|
|
leaksoup.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SIMPLE_PROGRAMS = \
|
|
|
|
$(SIMPLECSRCS:.c=$(BIN_SUFFIX)) \
|
|
|
|
$(SIMPLECPPSRCS:.cpp=$(BIN_SUFFIX)) \
|
|
|
|
$(NULL)
|
2002-04-17 03:36:47 +04:00
|
|
|
|
|
|
|
CSRCS = \
|
2001-11-16 01:40:53 +03:00
|
|
|
spacetrace.c \
|
2002-04-17 03:36:47 +04:00
|
|
|
spacecategory.c \
|
2002-05-11 05:24:52 +04:00
|
|
|
formdata.c \
|
2001-09-08 22:29:24 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2002-05-02 23:43:09 +04:00
|
|
|
PROGRAM = spacetrace$(BIN_SUFFIX)
|
2001-09-08 22:29:24 +04:00
|
|
|
|
2002-02-15 01:56:03 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/config/os2
|
|
|
|
endif
|
|
|
|
|
2001-09-08 22:29:24 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2007-08-20 05:30:04 +04:00
|
|
|
ifdef MOZ_ENABLE_LIBXUL
|
2009-09-19 06:59:53 +04:00
|
|
|
ifneq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-08-20 05:30:04 +04:00
|
|
|
EXTRA_DSO_LIBS = xul
|
|
|
|
endif
|
|
|
|
endif
|
2003-01-15 23:40:06 +03:00
|
|
|
|
2001-09-08 22:29:24 +04:00
|
|
|
LIBS += \
|
2002-02-15 01:56:03 +03:00
|
|
|
$(LIBS_DIR) \
|
|
|
|
tmreader.$(OBJ_SUFFIX) \
|
2003-01-18 19:24:55 +03:00
|
|
|
adreader.$(OBJ_SUFFIX) \
|
2006-08-10 20:38:00 +04:00
|
|
|
$(XPCOM_GLUE_LDOPTS) \
|
2010-07-17 10:52:30 +04:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2001-09-08 22:29:24 +04:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-08-20 05:30:04 +04:00
|
|
|
ifdef MOZ_ENABLE_LIBXUL
|
2009-09-19 06:59:53 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-08-20 05:30:04 +04:00
|
|
|
LIBS += $(DIST)/bin/XUL
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2001-11-16 01:40:53 +03:00
|
|
|
ifdef HAVE_BOUTELL_GD
|
2002-04-17 01:50:01 +04:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I"$(HAVE_BOUTELL_GD)" \
|
|
|
|
$(NULL)
|
|
|
|
LIBS += \
|
|
|
|
-lmozz_s \
|
|
|
|
"$(HAVE_BOUTELL_GD)/gd.lib" \
|
|
|
|
$(NULL)
|
|
|
|
else
|
2001-11-16 01:40:53 +03:00
|
|
|
LIBS += \
|
|
|
|
-lgd \
|
|
|
|
$(NULL)
|
2002-04-17 01:50:01 +04:00
|
|
|
endif
|
2001-11-16 01:40:53 +03:00
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-DHAVE_BOUTELL_GD \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2003-01-18 19:24:55 +03:00
|
|
|
EXTRA_DEPS = tmreader.$(OBJ_SUFFIX) adreader.$(OBJ_SUFFIX)
|
|
|
|
GARBAGE += tmreader.$(OBJ_SUFFIX) adreader.$(OBJ_SUFFIX)
|
2001-09-08 22:29:24 +04:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2002-04-17 05:03:44 +04:00
|
|
|
|
|
|
|
# install rules.txt along with spacetrace executable
|
|
|
|
libs:: rules.txt
|
|
|
|
$(INSTALL) $< $(DIST)/bin
|
2003-04-17 11:36:28 +04:00
|
|
|
|
|
|
|
libs:: spacetrace.css
|
|
|
|
$(INSTALL) $< $(DIST)/bin/res
|
|
|
|
|