2001-09-08 22:29:24 +04:00
|
|
|
#
|
2012-05-21 15:12:37 +04: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/.
|
2001-09-08 22:29:24 +04:00
|
|
|
|
2012-05-15 09:44:32 +04:00
|
|
|
EXTRACSRCS = tmreader.c
|
|
|
|
EXTRACPPSRCS = adreader.cpp
|
2001-09-08 22:29:24 +04:00
|
|
|
|
2011-04-14 13:23:13 +04:00
|
|
|
ifndef MOZ_PROFILE_GENERATE
|
2012-05-15 09:44:32 +04:00
|
|
|
|
|
|
|
PROGCSRCS = \
|
|
|
|
spacetrace.c \
|
|
|
|
spacecategory.c \
|
|
|
|
formdata.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
PROGOBJS = $(PROGCSRCS:.c=.$(OBJ_SUFFIX))
|
2011-04-14 13:23:13 +04:00
|
|
|
endif
|
2001-09-08 22:29:24 +04:00
|
|
|
|
2013-08-14 11:00:13 +04:00
|
|
|
CPPSRCS += $(EXTRACPPSRCS)
|
|
|
|
|
2001-09-08 22:29:24 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
|
|
|
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) \
|
2001-09-08 22:29:24 +04:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
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
|
|
|
|
|
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 += \
|
2013-12-03 01:34:21 +04:00
|
|
|
-I'$(HAVE_BOUTELL_GD)' \
|
2002-04-17 01:50:01 +04:00
|
|
|
$(NULL)
|
|
|
|
LIBS += \
|
|
|
|
-lmozz_s \
|
2013-12-03 01:34:21 +04:00
|
|
|
'$(HAVE_BOUTELL_GD)/gd.lib' \
|
2002-04-17 01:50:01 +04:00
|
|
|
$(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
|
|
|
|
|
2012-05-15 09:44:32 +04:00
|
|
|
EXTRA_DEPS = $(EXTRACSRCS:.c=.$(OBJ_SUFFIX)) $(EXTRACPPSRCS:.cpp=.$(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
|