Commit a263647f23838ec65002d44ba4a80fd8d23f44cb

Steffen Jaeckel 2014-10-18T20:20:30

add new make target 'test_standalone'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/makefile b/makefile
index 9925ce9..9164e7d 100644
--- a/makefile
+++ b/makefile
@@ -132,6 +132,11 @@ install: $(LIBNAME)
 test: $(LIBNAME) demo/demo.o
 	$(CC) $(CFLAGS) demo/demo.o $(LIBNAME) -o test
 
+test_standalone: CFLAGS+=-DLTM_DEMO_TEST_VS_MTEST=0
+
+test_standalone: $(LIBNAME) demo/demo.o
+	$(CC) $(CFLAGS) demo/demo.o $(LIBNAME) -o test
+
 .PHONY: mtest
 mtest:
 	cd mtest ; $(CC) $(CFLAGS) mtest.c -o mtest