From da6dd5f792c28e05201f10d99d5302c639d598eb Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Wed, 6 Feb 2019 12:22:58 -0500 Subject: [PATCH] Clean up Makefile --- crypto_kem/kyber768/clean/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/crypto_kem/kyber768/clean/Makefile b/crypto_kem/kyber768/clean/Makefile index 6551de20..e802b821 100644 --- a/crypto_kem/kyber768/clean/Makefile +++ b/crypto_kem/kyber768/clean/Makefile @@ -1,14 +1,13 @@ -LIB=libkyber768.so -OBJECTS=cbd.o indcpa.o kem.o kex.o ntt.o poly.o polyvec.o precomp.o reduce.o verify.o +LIB=kyber768_clean.a -COMMON_DIR=../../../common -COMMON_OBJECTS=$(COMMON_DIR)/fips202.o $(COMMON_DIR)/notrandombytes.o +SOURCES=$(wildcard *.c) +OBJECTS=$(patsubst %.c,%.o,$(SOURCES)) -CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99 -fPIC -g -I$(COMMON_DIR) $(EXTRAFLAGS) +CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99 -I../../../common $(EXTRAFLAGS) -$(LIB): $(OBJECTS) $(COMMON_OBJECTS) - $(CC) -shared -o $@ $(OBJECTS) $(COMMON_OBJECTS) +$(LIB): $(OBJECTS) + $(AR) -r $@ $(OBJECTS) clean: - $(RM) $(OBJECTS) $(COMMON_OBJECTS) + $(RM) $(OBJECTS) $(RM) $(LIB)