1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-23 16:08:59 +00:00
pqcrypto/crypto_kem/kyber768/clean/Makefile

20 lines
536 B
Makefile
Raw Normal View History

# This Makefile can be used with GNU Make or BSD Make
2019-02-02 01:58:26 +00:00
LIB=libkyber768_clean.a
HEADERS=api.h cbd.h indcpa.h kem.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-shake.o
2019-02-02 01:58:26 +00:00
CFLAGS=-O3 -Wall -Wextra -Wpedantic -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)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c -o $@ $<
2019-02-06 17:22:58 +00:00
$(LIB): $(OBJECTS)
$(AR) -r $@ $(OBJECTS)
2019-02-02 01:58:26 +00:00
clean:
$(RM) $(OBJECTS)
$(RM) $(LIB)