X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Fhtable%2Ftools%2FMakefile;h=289d92b33532a8b09b8ba5e608f8102c7de86f5e;hb=5c559e7df1d31b4c0ddf26451fac972dc8a0c2c9;hp=001e160b78f9936ea9efa7a60ac6592d53338df1;hpb=ee0e05e46813b239453e9f52b924d4d9df4607df;p=ccan 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