Welcome to little lamb

Code » test-hashes » master » tree

[master] / project.mk

BINS = test-sha1-skalibs test-sha256-skalibs test-blake2s-skalibs \
	   test-sha3-limb test-blake3-limb \
	   test-sha3-tiny \
	   test-sha3-unrolled \
	   test-sha3-nettle \
	   test-blake3-off-noopt test-blake3-off-intr
ifeq ($(BITS),64)
BINS += test-blake3-off
endif

NOOPT_FLAGS = -DBLAKE3_NO_SSE2 -DBLAKE3_NO_SSE41 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_AVX512

CFLAGS_blake3-off-sse2 = -msse2
CFLAGS_blake3-off-sse41 = -msse4.1
CFLAGS_blake3-off-avx2 = -mavx2
CFLAGS_blake3-off-avx512 = -mavx512f -mavx512vl -mavx512bw

CLEAN += src/blake3-off-noopt*.o src/blake3-off-noopt*.d

src/blake3-off-noopt.o: src/blake3-off.o
	$(_LN) ln -s blake3-off.o $@

src/blake3-off-noopt%.o: src/blake3-off%.c Makefile common.mk config.mk project.mk
	$(_CC) $(COMMON_CPPFLAGS) $(CPPFLAGS) $(COMMON_CFLAGS) $(CFLAGS) $(NOOPT_FLAGS) -o $@ -c $(<:%-noopt-impl=-impl)