1 # set ARCH in your environment if you want to do a multible architecture
2 # build. This means you Mac users.
3 # ARCH= -arch x386 -arch x86_64
6 CFLAGS= -Wall -Wno-parentheses $(ARCH) -I. -I..
9 TESTS= t/cantor.t t/distance.t t/adjacency.t t/range.t t/hexbin.t \
10 t/gridsize.t t/center.t
15 rm -f $(OBJS) libhexmap.a $(TESTS)
17 t/%.t: t/%.o t/tap.o $(OBJS)
18 $(CC) -I.. -I. -o $@ $+ $(LDFLAGS)
21 @prove --exec '' 2>/dev/null
23 hextest: hextest.c libhexmap.a
24 $(CC) $(CFLAGS) -o $@ hextest.c -L. -lhexmap
31 $(CC) $(CFLAGS) -c -o $@ $<