mem: add memzero benchmark.
[ccan] / ccan / mem / bench / Makefile
1 CCANDIR=../../..
2 CFLAGS=-Wall -Werror -O3 -I$(CCANDIR)
3 #CFLAGS=-Wall -Werror -g -I$(CCANDIR)
4
5 all: speed
6
7 CCAN_OBJS:=ccan-mem.o ccan-time.o
8
9 speed: speed.o $(CCAN_OBJS)
10
11 clean:
12         rm -f speed *.o
13
14 ccan-time.o: $(CCANDIR)/ccan/time/time.c
15         $(CC) $(CFLAGS) -c -o $@ $<
16 ccan-mem.o: $(CCANDIR)/ccan/mem/mem.c
17         $(CC) $(CFLAGS) -c -o $@ $<