2019-02-08 15:06:07 +00:00
|
|
|
# This Makefile can be used with GNU Make or BSD Make
|
2019-02-02 01:58:26 +00:00
|
|
|
|
2019-02-08 14:42:53 +00:00
|
|
|
LIB=libkyber768_clean.a
|
2019-05-06 13:50:27 +01:00
|
|
|
HEADERS=api.h cbd.h indcpa.h ntt.h params.h poly.h polyvec.h reduce.h verify.h symmetric.h
|
|
|
|
OBJECTS=cbd.o indcpa.o kem.o ntt.o poly.o polyvec.o reduce.o verify.o symmetric-fips202.o
|
2019-02-02 01:58:26 +00:00
|
|
|
|
2019-05-20 15:12:01 +01:00
|
|
|
CFLAGS=-O3 -Wall -Wextra -Wpedantic -Wvla -Werror -Wmissing-prototypes -Wredundant-decls -std=c99 -I../../../common $(EXTRAFLAGS)
|
2019-02-02 01:58:26 +00:00
|
|
|
|
2019-02-06 17:41:55 +00:00
|
|
|
all: $(LIB)
|
|
|
|
|
2019-02-18 15:19:07 +00:00
|
|
|
%.o: %.c $(HEADERS)
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2019-02-06 17:22:58 +00:00
|
|
|
$(LIB): $(OBJECTS)
|
2019-02-14 03:25:34 +00:00
|
|
|
$(AR) -r $@ $(OBJECTS)
|
2019-02-02 01:58:26 +00:00
|
|
|
|
|
|
|
clean:
|
2019-02-14 03:25:34 +00:00
|
|
|
$(RM) $(OBJECTS)
|
|
|
|
$(RM) $(LIB)
|