1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 23:48:58 +00:00

Fix nmakefiles

LIB is already an environment variable on Windows
This commit is contained in:
Thom Wiggers 2019-03-04 16:53:38 +01:00
parent 7ad19a30a4
commit d503a712ba
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363
2 changed files with 10 additions and 10 deletions

View File

@ -1,16 +1,16 @@
# This Makefile can be used with Microsoft Visual Studio's nmake using the command: # This Makefile can be used with Microsoft Visual Studio's nmake using the command:
# nmake /f Makefile.Microsoft_nmake # nmake /f Makefile.Microsoft_nmake
LIB=libkyber768_clean.lib LIBRARY=libkyber768_clean.lib
OBJECTS=cbd.obj indcpa.obj kem.obj ntt.obj poly.obj polyvec.obj precomp.obj reduce.obj verify.obj OBJECTS=cbd.obj indcpa.obj kem.obj ntt.obj poly.obj polyvec.obj precomp.obj reduce.obj verify.obj
CFLAGS=/I ..\..\..\common /W4 /WX CFLAGS=/I ..\..\..\common /W4 /WX
all: $(LIB) all: $(LIBRARY)
$(LIB): $(OBJECTS) $(LIBRARY): $(OBJECTS)
LIB.EXE /OUT:$@ $** LIB.EXE /OUT:$@ $**
clean: clean:
DEL $(OBJECTS) -DEL $(OBJECTS)
DEL $(LIB) -DEL $(LIBRARY)

View File

@ -1,16 +1,16 @@
# This Makefile can be used with Microsoft Visual Studio's nmake using the command: # This Makefile can be used with Microsoft Visual Studio's nmake using the command:
# nmake /f Makefile.Microsoft_nmake # nmake /f Makefile.Microsoft_nmake
LIB=libdilithium-iii_clean.lib LIBRARY=libdilithium-iii_clean.lib
OBJECTS=ntt.obj packing.obj poly.obj polyvec.obj reduce.obj rounding.obj sign.obj OBJECTS=ntt.obj packing.obj poly.obj polyvec.obj reduce.obj rounding.obj sign.obj
CFLAGS=/I ..\..\..\common /W1 /WX # FIXME: ideally would use /W4 instead of /W1, but too many failures in Dilithium right now CFLAGS=/I ..\..\..\common /W1 /WX # FIXME: ideally would use /W4 instead of /W1, but too many failures in Dilithium right now
all: $(LIB) all: $(LIBRARY)
$(LIB): $(OBJECTS) $(LIBRARY): $(OBJECTS)
LIB.EXE /OUT:$@ $** LIB.EXE /OUT:$@ $**
clean: clean:
DEL $(OBJECTS) -DEL $(OBJECTS)
DEL $(LIB) -DEL $(LIBRARY)