summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index c74854d..b46d639 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -31,12 +31,14 @@ sp := $(sp).x
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