summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index bd1752d..8092460 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -38,6 +38,11 @@ CFLAGS := $(CFLAGS) -I$(TOP)/src/ -I$(d) \
-Wno-unused-parameter
LDFLAGS := $(LDFLAGS) `$(PKGCONFIG) $(PKGCONFIGFLAGS) --libs json`
+ifdef PROFILE
+ CFLAGS := $(CFLAGS) -pg -fno-omit-frame-pointer
+ LDFLAGS := $(LDFLAGS) -pg
+endif
+
# Tests
TESTS_$(d) := csdetect dict entities hubbub parser \
tokeniser tokeniser2 tokeniser3 tree tree2