2019-02-08 14:42:53 +00:00
|
|
|
# This Makefile can be used with Microsoft Visual Studio's nmake using the command:
|
|
|
|
# nmake /f Makefile.Microsoft_nmake
|
2019-02-06 23:37:50 +00:00
|
|
|
|
2019-03-04 15:53:38 +00:00
|
|
|
LIBRARY=libkyber768_clean.lib
|
2020-07-31 07:17:42 +01:00
|
|
|
OBJECTS=cbd.obj indcpa.obj kem.obj ntt.obj poly.obj polyvec.obj reduce.obj verify.obj symmetric-shake.obj
|
2019-02-06 23:37:50 +00:00
|
|
|
|
2019-09-10 10:45: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-02-06 23:37:50 +00:00
|
|
|
|
2019-03-04 15:53:38 +00:00
|
|
|
all: $(LIBRARY)
|
2019-02-06 23:37:50 +00:00
|
|
|
|
2019-03-05 10:45:00 +00:00
|
|
|
# Make sure objects are recompiled if headers change.
|
|
|
|
$(OBJECTS): *.h
|
|
|
|
|
2019-03-04 15:53:38 +00:00
|
|
|
$(LIBRARY): $(OBJECTS)
|
2019-03-05 10:45:00 +00:00
|
|
|
LIB.EXE /NOLOGO /WX /OUT:$@ $**
|
2019-02-06 23:37:50 +00:00
|
|
|
|
|
|
|
clean:
|
2019-03-04 15:53:38 +00:00
|
|
|
-DEL $(OBJECTS)
|
|
|
|
-DEL $(LIBRARY)
|