X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fmem%2Fbench%2FMakefile;fp=ccan%2Fmem%2Fbench%2FMakefile;h=0f0dc7752fe9b6db068582eee1da1b90a1369e47;hb=ca2551bcedb6ebd66814a2d4fdce7494b19d9b0d;hp=0000000000000000000000000000000000000000;hpb=299170fa67ff3cf664cbcd2c95c4a85d0d6e699d;p=ccan diff --git a/ccan/mem/bench/Makefile b/ccan/mem/bench/Makefile new file mode 100644 index 00000000..0f0dc775 --- /dev/null +++ b/ccan/mem/bench/Makefile @@ -0,0 +1,17 @@ +CCANDIR=../../.. +CFLAGS=-Wall -Werror -O3 -I$(CCANDIR) +#CFLAGS=-Wall -Werror -g -I$(CCANDIR) + +all: speed + +CCAN_OBJS:=ccan-mem.o ccan-time.o + +speed: speed.o $(CCAN_OBJS) + +clean: + rm -f speed *.o + +ccan-time.o: $(CCANDIR)/ccan/time/time.c + $(CC) $(CFLAGS) -c -o $@ $< +ccan-mem.o: $(CCANDIR)/ccan/mem/mem.c + $(CC) $(CFLAGS) -c -o $@ $<