2019-06-11 10:18:05 +01:00
|
|
|
# This Makefile can be used with Microsoft Visual Studio's nmake using the command:
|
|
|
|
# nmake /f Makefile.Microsoft_nmake
|
|
|
|
|
|
|
|
LIBRARY=libdilithium2_clean.lib
|
2021-02-01 05:32:40 +00:00
|
|
|
OBJECTS=ntt.obj packing.obj poly.obj polyvec.obj reduce.obj rounding.obj sign.obj symmetric-shake.obj
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
CFLAGS=/nologo /O2 /I ..\..\..\common /W4 /WX /wd4146
|
2019-06-11 10:18:05 +01:00
|
|
|
|
|
|
|
all: $(LIBRARY)
|
|
|
|
|
|
|
|
# Make sure objects are recompiled if headers change.
|
|
|
|
$(OBJECTS): *.h
|
|
|
|
|
|
|
|
$(LIBRARY): $(OBJECTS)
|
2021-02-01 05:32:40 +00:00
|
|
|
LIB.EXE /NOLOGO /WX /OUT:$@ $**
|
2019-06-11 10:18:05 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-DEL $(OBJECTS)
|
|
|
|
-DEL $(LIBRARY)
|