https://github.com/mupq/pqm4
Tip revision: 5fa22a8fbd920f68c97dfb1a4b660e1f8933101c authored by Richard Petri on 21 January 2024, 18:14:32 UTC
Enable out-of-tree builds
Enable out-of-tree builds
Tip revision: 5fa22a8
crypto.mk
SYMCRYPTO_SRC = \
mupq/common/fips202.c \
mupq/common/sp800-185.c \
mupq/common/nistseedexpander.c \
common/keccakf1600.S \
common/aes.c \
common/aes-encrypt.S \
common/aes-keyschedule.S \
common/aes-publicinputs.c \
common/aes-publicinputs.S \
mupq/common/sha2.c \
common/crypto_hashblocks_sha512_inner32.s \
common/crypto_hashblocks_sha512.c
obj/libsymcrypto.a: $(call objs,$(SYMCRYPTO_SRC))
obj/libsymcrypto-hashprof.a: CPPFLAGS+=-DPROFILE_HASHING
obj/libsymcrypto-hashprof.a: $(call hashprofobjs,$(SYMCRYPTO_SRC))
ifeq ($(AIO),1)
LDLIBS +=
LIBDEPS += $(SYMCRYPTO_SRC)
CPPFLAGS+=$(if $(PROFILE_HASHING),-DPROFILE_HASHING)
else
LDLIBS += -lsymcrypto$(if $(PROFILE_HASHING),-hashprof)
LIBDEPS += obj/libsymcrypto$(if $(PROFILE_HASHING),-hashprof).a
endif