pqc/crypto_sign/dilithium3/clean/Makefile

23 lines
641 B
Makefile
Raw Normal View History

# This Makefile can be used with GNU Make or BSD Make
LIB=libdilithium3_clean.a
2019-12-06 15:16:41 +00:00
SOURCES = sign.c polyvec.c poly.c packing.c ntt.c reduce.c rounding.c stream.c
OBJECTS = sign.o polyvec.o poly.o packing.o ntt.o reduce.o rounding.o stream.o
HEADERS = api.h params.h sign.h polyvec.h poly.h packing.h ntt.h \
2019-12-06 15:16:41 +00:00
reduce.h rounding.h symmetric.h stream.h
CFLAGS=-O3 -Wall -Wconversion -Wextra -Wpedantic -Wvla -Werror -Wmissing-prototypes -Wredundant-decls -std=c99 -I../../../common $(EXTRAFLAGS)
all: $(LIB)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c -o $@ $<
$(LIB): $(OBJECTS)
$(AR) -r $@ $(OBJECTS)
clean:
$(RM) $(OBJECTS)
$(RM) $(LIB)