]> 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 density
8
9 speed: speed.o hash.o $(CCAN_OBJS)
10 density: density.o hash.o $(CCAN_OBJS)
11
12 speed.o: speed.c ../htable.h ../htable.c
13
14 hash.o: ../../hash/hash.c
15         $(CC) $(CFLAGS) -c -o $@ $<
16
17 stringspeed: stringspeed.o hash.o $(CCAN_OBJS)
18
19 stringspeed.o: speed.c ../htable.h ../htable.c
20
21 hsearchspeed: hsearchspeed.o $(CCAN_OBJS)
22
23 clean:
24         rm -f stringspeed speed hsearchspeed *.o
25
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 $@ $<