2019-06-18 15:37:25 +01:00
|
|
|
# This Makefile can be used with GNU Make or BSD Make
|
|
|
|
|
|
|
|
LIB=libfiresaber_clean.a
|
2020-10-16 01:00:04 +01:00
|
|
|
HEADERS=api.h cbd.h pack_unpack.h poly.h poly_mul.h SABER_indcpa.h SABER_params.h verify.h
|
2019-06-18 15:37:25 +01:00
|
|
|
OBJECTS=cbd.o kem.o pack_unpack.o poly.o poly_mul.o SABER_indcpa.o verify.o
|
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror -Wredundant-decls -Wmissing-prototypes -std=c99 -I../../../common $(EXTRAFLAGS)
|
2019-06-18 15:37:25 +01:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
%.o: %.c $(HEADERS)
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
$(LIB): $(OBJECTS)
|
|
|
|
$(AR) -r $@ $(OBJECTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(OBJECTS)
|
|
|
|
$(RM) $(LIB)
|