summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2015-01-25 00:13:48 +0100
committerDaniel Carl <danielcarl@gmx.de>2015-01-25 00:13:48 +0100
commitb3b86fd3f76a777ef6a49d07016c82d64a67db94 (patch)
treee72f9d036ae6fb8fed29c9b4d1d2bcce8b43f552 /tests
parentc97ce14eb4637e66e9ecad45e96c06c362ac7415 (diff)
Use own Makefile for src directory.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 9998f1a..8653ecd 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,6 +1,8 @@
-include ../config.mk
+BASEDIR=..
+SRCDIR=$(BASEDIR)/src
+include $(BASEDIR)/config.mk
-CPPFLAGS += -I ../
+CPPFLAGS += -I $(BASEDIR)/
CFLAGS += -fPIC -Wpedantic
TEST_PROGS = test-handlers \
@@ -11,7 +13,7 @@ TEST_PROGS = test-handlers \
all: $(TEST_PROGS)
LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):." gtester --verbose $(TEST_PROGS)
-${TEST_PROGS}: $(notdir $(LIBTARGET))
+${TEST_PROGS}: $(SRCDIR)/$(LIBTARGET)
clean:
- rm -f $(TEST_PROGS)
+ $(RM) -f $(TEST_PROGS)