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
9 speed: speed.o hash.o $(CCAN_OBJS)
11 speed.o: speed.c ../htable.h ../htable.c
13 hash.o: ../../hash/hash.c
14 $(CC) $(CFLAGS) -c -o $@ $<
16 stringspeed: stringspeed.o hash.o $(CCAN_OBJS)
18 stringspeed.o: speed.c ../htable.h ../htable.c
20 hsearchspeed: hsearchspeed.o $(CCAN_OBJS)
23 rm -f stringspeed speed hsearchspeed *.o
25 ccan-tal.o: $(CCANDIR)/ccan/tal/tal.c
26 $(CC) $(CFLAGS) -c -o $@ $<
27 ccan-tal-str.o: $(CCANDIR)/ccan/tal/str/str.c
28 $(CC) $(CFLAGS) -c -o $@ $<
29 ccan-take.o: $(CCANDIR)/ccan/take/take.c
30 $(CC) $(CFLAGS) -c -o $@ $<
31 ccan-tal-grab_file.o: $(CCANDIR)/ccan/tal/grab_file/grab_file.c
32 $(CC) $(CFLAGS) -c -o $@ $<
33 ccan-time.o: $(CCANDIR)/ccan/time/time.c
34 $(CC) $(CFLAGS) -c -o $@ $<
35 ccan-list.o: $(CCANDIR)/ccan/list/list.c
36 $(CC) $(CFLAGS) -c -o $@ $<
37 ccan-str.o: $(CCANDIR)/ccan/str/str.c
38 $(CC) $(CFLAGS) -c -o $@ $<
39 ccan-noerr.o: $(CCANDIR)/ccan/noerr/noerr.c
40 $(CC) $(CFLAGS) -c -o $@ $<