From 81f22eaba6741ffcb9a9f0e18afc1f4d113ba7dd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 25 Mar 2009 15:39:34 +0000 Subject: Fix test build. svn path=/trunk/libwapcaplet/; revision=6875 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3793751..de8d1ea 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,13 @@ 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 # Extra installation rules -- cgit v1.2.3