2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-05-14 22:44:32 -07:00
|
|
|
EXTRACSRCS = tmreader.c
|
|
|
|
EXTRACPPSRCS = adreader.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-04-14 02:23:13 -07:00
|
|
|
ifndef MOZ_PROFILE_GENERATE
|
2012-05-14 22:44:32 -07:00
|
|
|
|
|
|
|
PROGCSRCS = \
|
|
|
|
spacetrace.c \
|
|
|
|
spacecategory.c \
|
|
|
|
formdata.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
PROGOBJS = $(PROGCSRCS:.c=.$(OBJ_SUFFIX))
|
2011-04-14 02:23:13 -07:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-08-14 00:00:13 -07:00
|
|
|
CPPSRCS += $(EXTRACPPSRCS)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
|
|
|
LIBS += \
|
|
|
|
$(LIBS_DIR) \
|
|
|
|
tmreader.$(OBJ_SUFFIX) \
|
|
|
|
adreader.$(OBJ_SUFFIX) \
|
|
|
|
$(XPCOM_GLUE_LDOPTS) \
|
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-09-18 19:59:53 -07:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2007-08-19 18:30:04 -07:00
|
|
|
LIBS += $(DIST)/bin/XUL
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifdef HAVE_BOUTELL_GD
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += \
|
2013-12-02 13:34:21 -08:00
|
|
|
-I'$(HAVE_BOUTELL_GD)' \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
LIBS += \
|
|
|
|
-lmozz_s \
|
2013-12-02 13:34:21 -08:00
|
|
|
'$(HAVE_BOUTELL_GD)/gd.lib' \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
LIBS += \
|
|
|
|
-lgd \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-DHAVE_BOUTELL_GD \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-05-14 22:44:32 -07:00
|
|
|
EXTRA_DEPS = $(EXTRACSRCS:.c=.$(OBJ_SUFFIX)) $(EXTRACPPSRCS:.cpp=.$(OBJ_SUFFIX))
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
# install rules.txt along with spacetrace executable
|
|
|
|
libs:: rules.txt
|
|
|
|
$(INSTALL) $< $(DIST)/bin
|