diff options
| author | Tom Harley | 2020-01-24 05:15:35 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-01-24 05:15:35 +0000 |
| commit | c9f0de12be31eea463bf022f3eee76490b30f8dc (patch) | |
| tree | a80718ff00fa2dcb1c52c2af6828feffc7f89d8b /test/Makefile | |
| download | parapat-c9f0de12be31eea463bf022f3eee76490b30f8dc.tar.gz parapat-c9f0de12be31eea463bf022f3eee76490b30f8dc.zip | |
Diffstat (limited to 'test/Makefile')
| -rw-r--r-- | test/Makefile | 23 |
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) |
