r5276 jmb - /trunk/hubbub/test/Makefile
netsurf at semichrome.net
netsurf at semichrome.net
Sun Sep 7 17:43:37 BST 2008
Author: jmb
Date: Sun Sep 7 11:43:37 2008
New Revision: 5276
URL: http://source.netsurf-browser.org?rev=5276&view=rev
Log:
Only look for json if we're building the test target
Modified:
trunk/hubbub/test/Makefile
Modified: trunk/hubbub/test/Makefile
URL: http://source.netsurf-browser.org/trunk/hubbub/test/Makefile?rev=5276&r1=5275&r2=5276&view=diff
==============================================================================
--- trunk/hubbub/test/Makefile (original)
+++ trunk/hubbub/test/Makefile Sun Sep 7 11:43:37 2008
@@ -31,12 +31,14 @@
dirstack_$(sp) := $(d)
d := $(DIR)
+ifeq ($(findstring test,$(MAKECMDGOALS)),test)
# Extend toolchain settings
# We require the presence of libjson -- http://oss.metaparadigm.com/json-c/
CFLAGS := $(CFLAGS) -I$(TOP)/src/ -I$(d) \
$(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags json) \
-Wno-unused-parameter
LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs json)
+endif
ifdef PROFILE
CFLAGS := $(CFLAGS) -pg -fno-omit-frame-pointer
More information about the netsurf-commits
mailing list