2019-09-17 13:02:01 +01:00
|
|
|
# This Makefile can be used with Microsoft Visual Studio's nmake using the command:
|
|
|
|
# nmake /f Makefile.Microsoft_nmake
|
|
|
|
|
|
|
|
LIBRARY=libkyber512-90s_clean.lib
|
2020-11-27 15:24:23 +00:00
|
|
|
OBJECTS=cbd.obj indcpa.obj kem.obj ntt.obj poly.obj polyvec.obj reduce.obj symmetric-aes.obj verify.obj
|
2019-09-17 13:02:01 +01:00
|
|
|
|
|
|
|
# Warning C4146 is raised when a unary minus operator is applied to an
|
|
|
|
# unsigned type; this has nonetheless been standard and portable for as
|
|
|
|
# long as there has been a C standard, and we need it for constant-time
|
|
|
|
# computations. Thus, we disable that spurious warning.
|
2019-10-21 13:23:59 +01:00
|
|
|
CFLAGS=/nologo /O2 /I ..\..\..\common /W4 /WX /wd4146
|
2019-09-17 13:02:01 +01:00
|
|
|
|
|
|
|
all: $(LIBRARY)
|
|
|
|
|
|
|
|
# Make sure objects are recompiled if headers change.
|
|
|
|
$(OBJECTS): *.h
|
|
|
|
|
|
|
|
$(LIBRARY): $(OBJECTS)
|
|
|
|
LIB.EXE /NOLOGO /WX /OUT:$@ $**
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-DEL $(OBJECTS)
|
|
|
|
-DEL $(LIBRARY)
|