mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 15:39:07 +00:00
Make makefiles for Dilithium consistent with merged Kyber makefiles
This commit is contained in:
parent
f1f0c1d332
commit
157977258c
@ -1,15 +0,0 @@
|
|||||||
LIB=libkyber768_clean.a
|
|
||||||
|
|
||||||
SOURCES=$(wildcard *.c)
|
|
||||||
OBJECTS=$(patsubst %.c,%.o,$(SOURCES))
|
|
||||||
|
|
||||||
CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99 -I../../../common $(EXTRAFLAGS)
|
|
||||||
|
|
||||||
all: $(LIB)
|
|
||||||
|
|
||||||
$(LIB): $(OBJECTS)
|
|
||||||
$(AR) -r $@ $(OBJECTS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(RM) $(OBJECTS)
|
|
||||||
$(RM) $(LIB)
|
|
@ -1,4 +1,4 @@
|
|||||||
# This Makefile has been tested with GNU Make and BSD Make
|
# This Makefile can be used with GNU Make or BSD Make
|
||||||
|
|
||||||
LIB=libkyber768_clean.a
|
LIB=libkyber768_clean.a
|
||||||
OBJECTS=cbd.o indcpa.o kem.o kex.o ntt.o poly.o polyvec.o precomp.o reduce.o verify.o
|
OBJECTS=cbd.o indcpa.o kem.o kex.o ntt.o poly.o polyvec.o precomp.o reduce.o verify.o
|
||||||
|
15
crypto_sign/dilithium-iii/clean/Makefile
Normal file
15
crypto_sign/dilithium-iii/clean/Makefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# This Makefile can be used with GNU Make or BSD Make
|
||||||
|
|
||||||
|
LIB=libdilithium-iii_clean.a
|
||||||
|
OBJECTS=ntt.o packing.o poly.o polyvec.o reduce.o rounding.o sign.o
|
||||||
|
|
||||||
|
CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99 -I../../../common $(EXTRAFLAGS)
|
||||||
|
|
||||||
|
all: $(LIB)
|
||||||
|
|
||||||
|
$(LIB): $(OBJECTS)
|
||||||
|
$(AR) -r $@ $(OBJECTS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(RM) $(OBJECTS)
|
||||||
|
$(RM) $(LIB)
|
@ -1,8 +1,10 @@
|
|||||||
LIB=libdilithium-iii_clean.lib
|
# This Makefile can be used with Microsoft Visual Studio's nmake using the command:
|
||||||
|
# nmake /f Makefile.Microsoft_nmake
|
||||||
|
|
||||||
|
LIB=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
|
CFLAGS=/I ..\..\..\common /W1 /WX # FIXME: ideally would use /W4 instead of /W1, but too many failures in Dilithium right now
|
||||||
|
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user