From 4b329697f7b1171baea433b24e8886f318a845c9 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 29 Jun 2010 07:20:12 +0000 Subject: move url database test to test directory svn path=/trunk/netsurf/; revision=10589 --- test/Makefile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index f480f4809..babde6e65 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,6 +1,9 @@ CFLAGS := -std=c99 -g -O0 -D_BSD_SOURCE -D_POSIX_C_SOURCE -I.. \ - `pkg-config --cflags libxml-2.0 libcurl libparserutils` -LDFLAGS := `pkg-config --libs libxml-2.0 libcurl libparserutils` + `pkg-config --cflags libxml-2.0 libcurl` +LDFLAGS := `pkg-config --libs libxml-2.0 libcurl` + +llcache_CFLAGS := `pkg-config --cflags libparserutils` +llcache_LDFLAGS := `pkg-config --libs libparserutils` llcache_SRCS := content/fetch.c content/fetchers/fetch_curl.c \ content/fetchers/fetch_data.c content/llcache.c \ @@ -9,11 +12,23 @@ llcache_SRCS := content/fetch.c content/fetchers/fetch_curl.c \ utils/url.c utils/useragent.c utils/utf8.c utils/utils.c \ test/llcache.c +urldbtest_SRCS := content/urldb.c utils/url.c utils/utils.c utils/messages.c \ + utils/hashtable.c utils/filename.c test/urldbtest.c + +urldbtest_CFLAGS := -O2 +urldbtest_LDFLAGS := + +.PHONY: all + +all: llcache urldbtest + llcache: $(addprefix ../,$(llcache_SRCS)) - $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) + $(CC) $(CFLAGS) $(llcache_CFLAGS) $^ -o $@ $(LDFLAGS) $(llcache_LDFLAGS) +urldbtest: $(addprefix ../,$(urldbtest_SRCS)) + $(CC) $(CFLAGS) $(urldbtest_CFLAGS) $^ -o $@ $(LDFLAGS) $(urldbtest_LDFLAGS) .PHONY: clean clean: - $(RM) llcache + $(RM) llcache urldbtest -- cgit v1.2.3