2 CFLAGS=-Wall -Werror -O3 -I$(CCANDIR)
3 #CFLAGS=-Wall -Werror -g -I$(CCANDIR)
5 CCAN_OBJS:=ccan-tal.o ccan-tal-str.o ccan-tal-grab_file.o ccan-take.o ccan-time.o ccan-str.o ccan-noerr.o ccan-list.o
7 all: speed stringspeed hsearchspeed density
9 speed: speed.o hash.o $(CCAN_OBJS)
10 density: density.o hash.o $(CCAN_OBJS)
12 speed.o: speed.c ../htable.h ../htable.c
14 hash.o: ../../hash/hash.c
15 $(CC) $(CFLAGS) -c -o $@ $<
17 stringspeed: stringspeed.o hash.o $(CCAN_OBJS)
19 stringspeed.o: speed.c ../htable.h ../htable.c
21 hsearchspeed: hsearchspeed.o $(CCAN_OBJS)
24 rm -f stringspeed speed hsearchspeed *.o
26 ccan-tal.o: $(CCANDIR)/ccan/tal/tal.c
27 $(CC) $(CFLAGS) -c -o $@ $<
28 ccan-tal-str.o: $(CCANDIR)/ccan/tal/str/str.c
29 $(CC) $(CFLAGS) -c -o $@ $<
30 ccan-take.o: $(CCANDIR)/ccan/take/take.c
31 $(CC) $(CFLAGS) -c -o $@ $<
32 ccan-tal-grab_file.o: $(CCANDIR)/ccan/tal/grab_file/grab_file.c
33 $(CC) $(CFLAGS) -c -o $@ $<
34 ccan-time.o: $(CCANDIR)/ccan/time/time.c
35 $(CC) $(CFLAGS) -c -o $@ $<
36 ccan-list.o: $(CCANDIR)/ccan/list/list.c
37 $(CC) $(CFLAGS) -c -o $@ $<
38 ccan-str.o: $(CCANDIR)/ccan/str/str.c
39 $(CC) $(CFLAGS) -c -o $@ $<
40 ccan-noerr.o: $(CCANDIR)/ccan/noerr/noerr.c
41 $(CC) $(CFLAGS) -c -o $@ $<