X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcrypto%2Fsha256%2Fbenchmarks%2FMakefile;h=f1749ab5e7eb11cb8123235bae012e9d127a4619;hb=HEAD;hp=9621962abf1ebf006a062e9ff5501bbc3c14aacd;hpb=02e6fb3c3422b8af26133638bca38c8a5a5fa3fb;p=ccan diff --git a/ccan/crypto/sha256/benchmarks/Makefile b/ccan/crypto/sha256/benchmarks/Makefile index 9621962a..f1749ab5 100644 --- a/ccan/crypto/sha256/benchmarks/Makefile +++ b/ccan/crypto/sha256/benchmarks/Makefile @@ -1,8 +1,18 @@ CCANDIR := ../../../../ -CFLAGS := -Wall -I$(CCANDIR) -O3 -flto +CFLAGS := -Wall -I$(CCANDIR) -O3 -flto -DCCAN_USE_ORIGINAL=1 LDFLAGS := -O3 -flto -double-sha-bench: double-sha-bench.o ccan-time.o ccan-crypto-sha256.o +INTEL_OBJS := sha256_avx1.o sha256_avx2_rorx2.o sha256_avx2_rorx8.o sha256_sse4.o + +double-sha-bench: double-sha-bench.o ccan-time.o $(INTEL_OBJS) #ccan-crypto-sha256.o + +$(INTEL_OBJS): %.o : %.asm + +%.o : %.asm + yasm -f x64 -f elf64 -X gnu -g dwarf2 -D LINUX -o $@ $< + +clean: + rm -f *.o ccan-crypto-sha256.o: $(CCANDIR)/ccan/crypto/sha256/sha256.c $(CC) $(CFLAGS) -c -o $@ $<