2019-12-12 13:29:29 +00:00
|
|
|
# This Makefile can be used with Microsoft Visual Studio's nmake using the command:
|
|
|
|
# nmake /f Makefile.Microsoft_nmake
|
|
|
|
|
|
|
|
LIBRARY=libsphincs-shake256-256f-robust_avx2.lib
|
2020-05-29 11:08:57 +01:00
|
|
|
OBJECTS=address.obj wots.obj utils.obj utilsx4.obj fips202x4.obj fors.obj sign.obj hash_shake256.obj thash_shake256_robust.obj hash_shake256x4.obj thash_shake256_robustx4.obj
|
2019-12-12 13:29:29 +00:00
|
|
|
|
2020-05-29 11:22:10 +01:00
|
|
|
KECCAK4XDIR=..\..\..\common\keccak4x
|
2020-05-29 14:08:51 +01:00
|
|
|
KECCAK4XOBJ=KeccakP-1600-times4-SIMD256.obj
|
2020-05-29 11:22:10 +01:00
|
|
|
KECCAK4X=$(KECCAK4XDIR)\$(KECCAK4XOBJ)
|
|
|
|
|
2019-12-12 13:29:29 +00:00
|
|
|
CFLAGS=/nologo /arch:AVX2 /O2 /I ..\..\..\common /W4 /WX
|
|
|
|
|
|
|
|
all: $(LIBRARY)
|
|
|
|
|
|
|
|
# Make sure objects are recompiled if headers change.
|
|
|
|
$(OBJECTS): *.h
|
|
|
|
|
2020-05-29 14:08:51 +01:00
|
|
|
$(LIBRARY): $(OBJECTS) $(KECCAK4X)
|
2019-12-12 13:29:29 +00:00
|
|
|
LIB.EXE /NOLOGO /WX /OUT:$@ $**
|
|
|
|
|
2020-05-29 11:22:10 +01:00
|
|
|
$(KECCAK4X):
|
2020-05-29 14:08:51 +01:00
|
|
|
cd $(KECCAK4XDIR) && $(MAKE) /f Makefile.Microsoft_nmake $(KECCAK4XOBJ)
|
2020-05-29 11:22:10 +01:00
|
|
|
|
2019-12-12 13:29:29 +00:00
|
|
|
clean:
|
2020-05-29 14:08:51 +01:00
|
|
|
-DEL $(OBJECTS)
|
|
|
|
-DEL $(LIBRARY)
|
|
|
|
-DEL $(KECCAK4X)
|