mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
Add Makefiles for dilithium-iii
This commit is contained in:
parent
46ba607eba
commit
19b25d47ed
15
crypto_sign/dilithium-iii/clean/GNUmakefile
Normal file
15
crypto_sign/dilithium-iii/clean/GNUmakefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
LIB=libdilithium-iii_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)
|
14
crypto_sign/dilithium-iii/clean/Makefile.Microsoft_nmake
Normal file
14
crypto_sign/dilithium-iii/clean/Makefile.Microsoft_nmake
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
LIB=libdilithium-iii_clean.lib
|
||||||
|
|
||||||
|
OBJECTS=ntt.c packing.c poly.c polyvec.c reduce.c rounding.c sign.c
|
||||||
|
|
||||||
|
CFLAGS=/I ..\..\..\common /W1 /WX
|
||||||
|
|
||||||
|
all: $(LIB)
|
||||||
|
|
||||||
|
$(LIB): $(OBJECTS)
|
||||||
|
LIB.EXE /OUT:$@ $**
|
||||||
|
|
||||||
|
clean:
|
||||||
|
DEL $(OBJECTS)
|
||||||
|
DEL $(LIB)
|
@ -5,7 +5,8 @@ SET EL=0
|
|||||||
REM CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
REM CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
REM IF ERRORLEVEL 1 SET EL=1
|
REM IF ERRORLEVEL 1 SET EL=1
|
||||||
|
|
||||||
FOR /D %%K IN (crypto_kem\*) DO (
|
FOR /D %%J IN (crypto_kem, crypto_sig) DO (
|
||||||
|
FOR /D %%K IN (%%J\*) DO (
|
||||||
FOR /D %%L IN (%%K\*) DO (
|
FOR /D %%L IN (%%K\*) DO (
|
||||||
cd %%L
|
cd %%L
|
||||||
nmake /f Makefile.Microsoft_nmake clean
|
nmake /f Makefile.Microsoft_nmake clean
|
||||||
@ -14,6 +15,7 @@ FOR /D %%K IN (crypto_kem\*) DO (
|
|||||||
IF ERRORLEVEL 1 SET EL=3
|
IF ERRORLEVEL 1 SET EL=3
|
||||||
cd ..\..\..
|
cd ..\..\..
|
||||||
)
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
EXIT /b %EL%
|
EXIT /b %EL%
|
||||||
|
Loading…
Reference in New Issue
Block a user