summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorTom Harley2020-01-24 05:15:35 +0000
committerTom Harley2020-01-24 05:15:35 +0000
commitc9f0de12be31eea463bf022f3eee76490b30f8dc (patch)
treea80718ff00fa2dcb1c52c2af6828feffc7f89d8b /test/Makefile
downloadparapat-master.tar.gz
parapat-master.zip

Initial commit

HEADmaster
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..6605f50
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,23 @@
+CFLAGS = -Werror -Wall -Wextra -Wpedantic -std=c89 -ggdb3 -O1 -L.. -I..
+LDLIBS = -lpthread -lparapat
+OUTPUT_OPTION := -MMD -MP $(OUTPUT_OPTION)
+TRGT = farm-tests pipeline-tests fib
+
+LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(PWD)/..
+
+.PHONY: default test clean
+
+default: test
+
+test: test.time
+
+%-tests: ../libparapat.so
+
+test.time: $(TRGT)
+ for x in $(TRGT) ; do ./$$x ; done
+ touch test.time
+
+clean:
+ $(RM) *.d *.o $(TRGT)
+
+-include $(wildcard *.d)