X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fhtable%2Ftools%2FMakefile;h=289d92b33532a8b09b8ba5e608f8102c7de86f5e;hp=001e160b78f9936ea9efa7a60ac6592d53338df1;hb=5c559e7df1d31b4c0ddf26451fac972dc8a0c2c9;hpb=ab83de953730f5e5e571dbf69ffb3cc685a102dc diff --git a/ccan/htable/tools/Makefile b/ccan/htable/tools/Makefile index 001e160b..289d92b3 100644 --- a/ccan/htable/tools/Makefile +++ b/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