1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/trace-malloc/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +EXTRACSRCS = tmreader.c 1.10 +EXTRACPPSRCS = adreader.cpp 1.11 + 1.12 +ifndef MOZ_PROFILE_GENERATE 1.13 + 1.14 +PROGCSRCS = \ 1.15 + spacetrace.c \ 1.16 + spacecategory.c \ 1.17 + formdata.c \ 1.18 + $(NULL) 1.19 + 1.20 +PROGOBJS = $(PROGCSRCS:.c=.$(OBJ_SUFFIX)) 1.21 +endif 1.22 + 1.23 +CPPSRCS += $(EXTRACPPSRCS) 1.24 + 1.25 +include $(topsrcdir)/config/config.mk 1.26 + 1.27 +LIBS += \ 1.28 + $(LIBS_DIR) \ 1.29 + tmreader.$(OBJ_SUFFIX) \ 1.30 + adreader.$(OBJ_SUFFIX) \ 1.31 + $(XPCOM_GLUE_LDOPTS) \ 1.32 + $(NSPR_LIBS) \ 1.33 + $(NULL) 1.34 + 1.35 +ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) 1.36 +LIBS += $(DIST)/bin/XUL 1.37 +endif 1.38 + 1.39 +ifdef HAVE_BOUTELL_GD 1.40 +ifeq ($(OS_ARCH),WINNT) 1.41 +LOCAL_INCLUDES += \ 1.42 + -I'$(HAVE_BOUTELL_GD)' \ 1.43 + $(NULL) 1.44 +LIBS += \ 1.45 + -lmozz_s \ 1.46 + '$(HAVE_BOUTELL_GD)/gd.lib' \ 1.47 + $(NULL) 1.48 +else 1.49 +LIBS += \ 1.50 + -lgd \ 1.51 + $(NULL) 1.52 +endif 1.53 + 1.54 +DEFINES += \ 1.55 + -DHAVE_BOUTELL_GD \ 1.56 + $(NULL) 1.57 +endif 1.58 + 1.59 +EXTRA_DEPS = $(EXTRACSRCS:.c=.$(OBJ_SUFFIX)) $(EXTRACPPSRCS:.cpp=.$(OBJ_SUFFIX)) 1.60 + 1.61 +include $(topsrcdir)/config/rules.mk 1.62 + 1.63 +# install rules.txt along with spacetrace executable 1.64 +libs:: rules.txt 1.65 + $(INSTALL) $< $(DIST)/bin