Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 EXTRACSRCS = tmreader.c
7 EXTRACPPSRCS = adreader.cpp
9 ifndef MOZ_PROFILE_GENERATE
11 PROGCSRCS = \
12 spacetrace.c \
13 spacecategory.c \
14 formdata.c \
15 $(NULL)
17 PROGOBJS = $(PROGCSRCS:.c=.$(OBJ_SUFFIX))
18 endif
20 CPPSRCS += $(EXTRACPPSRCS)
22 include $(topsrcdir)/config/config.mk
24 LIBS += \
25 $(LIBS_DIR) \
26 tmreader.$(OBJ_SUFFIX) \
27 adreader.$(OBJ_SUFFIX) \
28 $(XPCOM_GLUE_LDOPTS) \
29 $(NSPR_LIBS) \
30 $(NULL)
32 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
33 LIBS += $(DIST)/bin/XUL
34 endif
36 ifdef HAVE_BOUTELL_GD
37 ifeq ($(OS_ARCH),WINNT)
38 LOCAL_INCLUDES += \
39 -I'$(HAVE_BOUTELL_GD)' \
40 $(NULL)
41 LIBS += \
42 -lmozz_s \
43 '$(HAVE_BOUTELL_GD)/gd.lib' \
44 $(NULL)
45 else
46 LIBS += \
47 -lgd \
48 $(NULL)
49 endif
51 DEFINES += \
52 -DHAVE_BOUTELL_GD \
53 $(NULL)
54 endif
56 EXTRA_DEPS = $(EXTRACSRCS:.c=.$(OBJ_SUFFIX)) $(EXTRACPPSRCS:.cpp=.$(OBJ_SUFFIX))
58 include $(topsrcdir)/config/rules.mk
60 # install rules.txt along with spacetrace executable
61 libs:: rules.txt
62 $(INSTALL) $< $(DIST)/bin