summaryrefslogtreecommitdiff
path: root/lib/ccan/htable/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ccan/htable/tools/Makefile')
-rw-r--r--lib/ccan/htable/tools/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/ccan/htable/tools/Makefile b/lib/ccan/htable/tools/Makefile
index 001e160b78..289d92b335 100644
--- a/lib/ccan/htable/tools/Makefile
+++ b/lib/ccan/htable/tools/Makefile
@@ -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