From c54cdca9836d0b399e8628592491c617c63b0576 Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Sun, 14 Apr 2019 19:31:15 -0400 Subject: [PATCH] Build nistkat on Windows --- test/Makefile.Microsoft_nmake | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/Makefile.Microsoft_nmake b/test/Makefile.Microsoft_nmake index 85378202..2e70f502 100644 --- a/test/Makefile.Microsoft_nmake +++ b/test/Makefile.Microsoft_nmake @@ -37,6 +37,8 @@ testvectors: $(DEST_DIR)\testvectors_$(SCHEME)_$(IMPLEMENTATION).exe printparams: $(DEST_DIR)\printparams_$(SCHEME)_$(IMPLEMENTATION).exe +nistkat: $(DEST_DIR)\nistkat_$(SCHEME)_$(IMPLEMENTATION).exe + $(DEST_DIR)\functest_$(SCHEME)_$(IMPLEMENTATION).exe: build-scheme $(COMMON_OBJECTS) $(COMMON_DIR)\randombytes.obj -MKDIR $(DEST_DIR) -DEL functest.obj @@ -55,7 +57,16 @@ $(DEST_DIR)\printparams_$(SCHEME)_$(IMPLEMENTATION).exe: crypto_$(TYPE)\printpar $(CC) /c crypto_$(TYPE)\printparams.c $(CFLAGS) /I $(SCHEME_DIR) /DPQCLEAN_NAMESPACE=PQCLEAN_$(SCHEME_UPPERCASE)_$(IMPLEMENTATION_UPPERCASE) LINK.EXE /OUT:$@ printparams.obj +$(DEST_DIR)\nistkat_$(SCHEME)_$(IMPLEMENTATION).exe: build-scheme $(COMMON_OBJECTS) crypto_$(TYPE)\nistkatrng.obj + -MKDIR $(DEST_DIR) + -DEL nistkat.obj + $(CC) /c crypto_$(TYPE)\nistkat.c $(CFLAGS) /I $(SCHEME_DIR) /DPQCLEAN_NAMESPACE=PQCLEAN_$(SCHEME_UPPERCASE)_$(IMPLEMENTATION_UPPERCASE) + LINK.EXE /STACK:8192000 /OUT:$@ nistkat.obj $(COMMON_OBJECTS_NOPATH) nistkat.obj $(SCHEME_DIR)\lib$(SCHEME)_$(IMPLEMENTATION).lib + clean: - -DEL functest.obj testvectors.obj printparams.obj + -DEL functest.obj testvectors.obj printparams.obj nistkat.obj -DEL $(COMMON_OBJECTS_NOPATH) randombytes.obj notrandombytes.obj -DEL $(DEST_DIR)\functest_$(SCHEME)_$(IMPLEMENTATION).exe + -DEL $(DEST_DIR)\testvectors_$(SCHEME)_$(IMPLEMENTATION).exe + -DEL $(DEST_DIR)\printparams_$(SCHEME)_$(IMPLEMENTATION).exe + -DEL $(DEST_DIR)\nistkat_$(SCHEME)_$(IMPLEMENTATION).exe