2019-07-21 00:44:25 +01:00
|
|
|
# This Makefile can be used with GNU Make or BSD Make
|
|
|
|
|
2020-10-21 21:37:33 +01:00
|
|
|
LIB=libfalcon512_clean.a
|
2019-07-21 00:44:25 +01:00
|
|
|
|
2020-10-21 21:37:33 +01:00
|
|
|
SOURCES = codec.c common.c fft.c fpr.c keygen.c pqclean.c rng.c sign.c vrfy.c
|
|
|
|
OBJECTS = codec.o common.o fft.o fpr.o keygen.o pqclean.o rng.o sign.o vrfy.o
|
|
|
|
HEADERS = api.h fpr.h inner.h
|
2019-07-21 00:44:25 +01:00
|
|
|
|
|
|
|
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)
|