summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-25 19:00:33 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-03-25 19:00:33 (GMT)
commit34a3e176e259c15032897d9a71fd2a088e2d69c3 (patch)
tree033850faca35d8e19682d312e01a006552e8029d
parent81f22eaba6741ffcb9a9f0e18afc1f4d113ba7dd (diff)
downloadlibwapcaplet-34a3e176e259c15032897d9a71fd2a088e2d69c3.tar.gz
libwapcaplet-34a3e176e259c15032897d9a71fd2a088e2d69c3.tar.bz2
Conditionalise use of check on WANT_TEST==yes
svn path=/trunk/libwapcaplet/; revision=6881
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index de8d1ea..271fb4b 100644
--- a/Makefile
+++ b/Makefile
@@ -16,15 +16,17 @@ WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src $(WARNFLAGS)
-ifneq ($(PKGCONFIG),)
- TESTCFLAGS := $(TESTCFLAGS) $(shell $(PKGCONFIG) --cflags check)
- TESTLDFLAGS := $(TESTLDFLAGS) $(shell $(PKGCONFIG) --libs check)
-else
- TESTLDFLAGS := $(TESTLDFLAGS) -lcheck
-endif
-
include build/makefiles/Makefile.top
+ifeq ($(WANT_TEST),yes)
+ ifneq ($(PKGCONFIG),)
+ TESTCFLAGS := $(TESTCFLAGS) $(shell $(PKGCONFIG) --cflags check)
+ TESTLDFLAGS := $(TESTLDFLAGS) $(shell $(PKGCONFIG) --libs check)
+ else
+ TESTLDFLAGS := $(TESTLDFLAGS) -lcheck
+ endif
+endif
+
# Extra installation rules
INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libwapcaplet:include/libwapcaplet/libwapcaplet.h
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in