ccan/crc32c: new module for accelerated CRC32 (on x86-64).
[ccan] / ccan / crc32c / benchmark / Makefile
1 CCANDIR=../../..
2 CFLAGS=-Wall -Werror -O3 -I$(CCANDIR) -flto
3 #CFLAGS=-Wall -Werror -g3 -I$(CCANDIR)
4 LDFLAGS := -flto -O3
5
6 all: bench
7
8 CCAN_OBJS:=ccan-tal.o ccan-tal-grab_file.o ccan-noerr.o ccan-take.o ccan-time.o
9
10 bench: bench.o $(CCAN_OBJS)
11
12 clean:
13         rm -f bench *.o
14
15 ccan-time.o: $(CCANDIR)/ccan/time/time.c
16         $(CC) $(CFLAGS) -c -o $@ $<
17 ccan-tal.o: $(CCANDIR)/ccan/tal/tal.c
18         $(CC) $(CFLAGS) -c -o $@ $<
19 ccan-take.o: $(CCANDIR)/ccan/take/take.c
20         $(CC) $(CFLAGS) -c -o $@ $<
21 ccan-noerr.o: $(CCANDIR)/ccan/noerr/noerr.c
22         $(CC) $(CFLAGS) -c -o $@ $<
23 ccan-tal-grab_file.o: $(CCANDIR)/ccan/tal/grab_file/grab_file.c
24         $(CC) $(CFLAGS) -c -o $@ $<