summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: 6605f50afa4b5ae01adde7c01ae644005995f894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)