Moved README to website.
[frac.git] / Makefile
bloba181fb1b846ca49951509390d33fff2ff01566f3
1 .PHONY: test target clean snapshot
3 CF_OBJS:=cf.o mobius.o famous.o bihom.o taylor.o test.o newton.o tee.o
4 TESTS:=bihom_test cf_test famous_test mobius_test newton_test tee_test
5 BINS:=pi hakmem
7 target : $(BINS)
9 libfrac.a : $(CF_OBJS)
10 ar rvs $@ $^
12 %.o : %.c
13 gcc -O3 -std=c99 -Wall -c -o $@ $<
14 #gcc -g -std=c99 -Wall -c -o $@ $<
16 % : %.c libfrac.a
17 gcc -O3 -std=c99 -Wall -o $@ $< -lgmp -lpthread -lfrac -L .
18 #gcc -g -std=c99 -Wall -o $@ $< -lgmp -lpthread -lfrac -L .
20 test: $(TESTS)
22 snapshot:
23 git-diff # Ideally should do nothing.
24 git-archive --format=tar --prefix=frac-snapshot/ HEAD | gzip > frac-snapshot.tar.gz
26 clean:
27 -rm *.o $(TESTS) $(BINS) libfrac.a