]> git.ozlabs.org Git - ccan/blob - ccan/crypto/sha256/benchmarks/Makefile
shachain: allow overriding of number of bits, add cmdline tool.
[ccan] / ccan / crypto / sha256 / benchmarks / Makefile
1 CCANDIR := ../../../../
2 CFLAGS := -Wall -I$(CCANDIR) -O3 -flto -DCCAN_USE_ORIGINAL=1
3 LDFLAGS := -O3 -flto
4
5 INTEL_OBJS := sha256_avx1.o sha256_avx2_rorx2.o sha256_avx2_rorx8.o sha256_sse4.o
6
7 double-sha-bench: double-sha-bench.o ccan-time.o $(INTEL_OBJS)  #ccan-crypto-sha256.o
8
9 $(INTEL_OBJS): %.o : %.asm
10
11 %.o : %.asm
12         yasm -f x64 -f elf64 -X gnu -g dwarf2 -D LINUX -o $@ $<
13
14 clean:
15         rm -f *.o
16
17 ccan-crypto-sha256.o: $(CCANDIR)/ccan/crypto/sha256/sha256.c
18         $(CC) $(CFLAGS) -c -o $@ $<
19 ccan-time.o: $(CCANDIR)/ccan/time/time.c
20         $(CC) $(CFLAGS) -c -o $@ $<