summaryrefslogtreecommitdiff
path: root/lib/ccan/htable/tools/Makefile
blob: 289d92b33532a8b09b8ba5e608f8102c7de86f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS=-Wall -Werror -O3 -I../../..
#CFLAGS=-Wall -Werror -g -I../../..

all: speed stringspeed

speed: speed.o hash.o

speed.o: speed.c ../htable.h ../htable.c

hash.o: ../../hash/hash.c
	$(CC) $(CFLAGS) -c -o $@ $<

stringspeed: stringspeed.o hash.o ../../talloc.o ../../str_talloc.o ../../grab_file.o ../../str.o ../../time.o ../../noerr.o

stringspeed.o: speed.c ../htable.h ../htable.c

clean:
	rm -f stringspeed speed