]> git.ozlabs.org Git - ccan/blob - ccan/htable/tools/Makefile
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / htable / tools / Makefile
1 CCANDIR=../../..
2 CFLAGS=-Wall -Werror -O3 -I$(CCANDIR)
3 #CFLAGS=-Wall -Werror -g -I$(CCANDIR)
4
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
6
7 all: speed stringspeed hsearchspeed
8
9 speed: speed.o hash.o $(CCAN_OBJS)
10
11 speed.o: speed.c ../htable.h ../htable.c
12
13 hash.o: ../../hash/hash.c
14         $(CC) $(CFLAGS) -c -o $@ $<
15
16 stringspeed: stringspeed.o hash.o $(CCAN_OBJS)
17
18 stringspeed.o: speed.c ../htable.h ../htable.c
19
20 hsearchspeed: hsearchspeed.o $(CCAN_OBJS)
21
22 clean:
23         rm -f stringspeed speed hsearchspeed *.o
24
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 $@ $<