X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=3856ab77211cc95f6b2ef6bc7a586459ce019568;hb=c5a7aa5029146b2bcea5daae53c6aa3e5e33ed04;hp=e0789e5ba9888d6286f8dec34dfd107911e8f0f1;hpb=31d02c77ec523a535baa29086f5ed7ff67f3002f;p=hexagon diff --git a/Makefile b/Makefile index e0789e5..3856ab7 100644 --- a/Makefile +++ b/Makefile @@ -7,19 +7,21 @@ CFLAGS= -Wall -Wno-parentheses $(ARCH) -I. -I.. OBJS= hexagon.o astar.o SRC=$(OBJS:.o=.c) TESTS= t/cantor.t t/distance.t t/adjacency.t t/range.t t/hexbin.t \ - t/gridsize.t t/center.t t/astar.t + t/gridsize.t t/center.t t/astar.t t/polar.t PREFIX=/usr/local -all: libhexagon.a docs +all: libhexagon.a docs testfiles clean: rm -f $(OBJS) libhexagon.a $(TESTS) -t/%.t: t/%.o t/tap.o $(OBJS) +t/%.t: t/%.o t/ctap.o $(OBJS) $(CC) -I.. -I. -o $@ $+ $(LDFLAGS) +testfiles: $(TESTS) + test: libhexagon.a $(TESTS) - @prove --exec '' 2>/dev/null + @prove --exec '' $(TESTS) 2>/dev/null libhexagon.a: $(OBJS) ar r $@ $+