2019-02-08 15:06:07 +00:00
|
|
|
# This Makefile can be used with GNU Make or BSD Make
|
|
|
|
|
|
|
|
LIB=libdilithium-iii_clean.a
|
2019-02-18 15:19:07 +00:00
|
|
|
HEADERS=api.h ntt.h packing.h params.h poly.h polyvec.h reduce.h rounding.h sign.h
|
2019-02-08 15:06:07 +00:00
|
|
|
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)
|
|
|
|
|
2019-02-18 15:19:07 +00:00
|
|
|
%.o: %.c $(HEADERS)
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2019-02-08 15:06:07 +00:00
|
|
|
$(LIB): $(OBJECTS)
|
2019-02-11 07:26:26 +00:00
|
|
|
$(AR) -r $@ $(OBJECTS)
|
2019-02-08 15:06:07 +00:00
|
|
|
|
|
|
|
clean:
|
2019-02-11 07:26:26 +00:00
|
|
|
$(RM) $(OBJECTS)
|
|
|
|
$(RM) $(LIB)
|