]> git.ozlabs.org Git - ccan/blobdiff - ccan/crypto/sha256/benchmarks/Makefile
shachain: allow overriding of number of bits, add cmdline tool.
[ccan] / ccan / crypto / sha256 / benchmarks / Makefile
index 9621962abf1ebf006a062e9ff5501bbc3c14aacd..f1749ab5e7eb11cb8123235bae012e9d127a4619 100644 (file)
@@ -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 $@ $<