]> git.ozlabs.org Git - ccan/blobdiff - ccan/htable/tools/Makefile
htable, strset: benchmarking tools.
[ccan] / ccan / htable / tools / Makefile
index 001e160b78f9936ea9efa7a60ac6592d53338df1..289d92b33532a8b09b8ba5e608f8102c7de86f5e 100644 (file)
@@ -1,5 +1,18 @@
 CFLAGS=-Wall -Werror -O3 -I../../..
+#CFLAGS=-Wall -Werror -g -I../../..
 
-speed: speed.o ../../hash.o
+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