Browse Source

Make makefiles for Dilithium consistent with merged Kyber makefiles

tags/v0.0.1
Douglas Stebila 5 years ago
parent
commit
157977258c
4 changed files with 20 additions and 18 deletions
  1. +0
    -15
      crypto_kem/kyber768/clean/GNUmakefile
  2. +1
    -1
      crypto_kem/kyber768/clean/Makefile
  3. +15
    -0
      crypto_sign/dilithium-iii/clean/Makefile
  4. +4
    -2
      crypto_sign/dilithium-iii/clean/Makefile.Microsoft_nmake

+ 0
- 15
crypto_kem/kyber768/clean/GNUmakefile View File

@@ -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
- 1
crypto_kem/kyber768/clean/Makefile View File

@@ -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
OBJECTS=cbd.o indcpa.o kem.o kex.o ntt.o poly.o polyvec.o precomp.o reduce.o verify.o


+ 15
- 0
crypto_sign/dilithium-iii/clean/Makefile View 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)

+ 4
- 2
crypto_sign/dilithium-iii/clean/Makefile.Microsoft_nmake View File

@@ -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

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)



Loading…
Cancel
Save