]> git.ozlabs.org Git - ccan/blobdiff - ccan/mem/bench/Makefile
mem: add memzero benchmark.
[ccan] / ccan / mem / bench / Makefile
diff --git a/ccan/mem/bench/Makefile b/ccan/mem/bench/Makefile
new file mode 100644 (file)
index 0000000..0f0dc77
--- /dev/null
@@ -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 $@ $<