d8ad84faa47cdde18d60cb7894dd3c3dc75cd272
[frac.git] / Makefile
blobd8ad84faa47cdde18d60cb7894dd3c3dc75cd272
1 .PHONY: test target clean
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 epow 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 clean:
23 -rm *.o $(TESTS) $(BINS) libfrac.a