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