Makefile 436 Bytes
Newer Older
Thierry Martinez's avatar
Thierry Martinez committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=swipl-ld
LDFLAGS=-shared

all: graphviz_swiprolog test

.PHONY: clean test

clean:
	rm -f graphviz_swiprolog graphviz_swiprolog.so graphviz_swiprolog.o

graphviz_swiprolog: graphviz_swiprolog.o
	swipl-ld -shared -o graphviz_swiprolog graphviz_swiprolog.o
	mv graphviz_swiprolog.so graphviz_swiprolog

graphviz_swiprolog.o: graphviz_swiprolog.c

test:
	swipl -g "\
	  call_cleanup((['graphviz.plt'], run_tests, halt(0)), halt(1))\
	"