Clean up Makefile
This commit is contained in:
parent
65918c0fa8
commit
da6dd5f792
@ -1,14 +1,13 @@
|
|||||||
LIB=libkyber768.so
|
LIB=kyber768_clean.a
|
||||||
OBJECTS=cbd.o indcpa.o kem.o kex.o ntt.o poly.o polyvec.o precomp.o reduce.o verify.o
|
|
||||||
|
|
||||||
COMMON_DIR=../../../common
|
SOURCES=$(wildcard *.c)
|
||||||
COMMON_OBJECTS=$(COMMON_DIR)/fips202.o $(COMMON_DIR)/notrandombytes.o
|
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)
|
$(LIB): $(OBJECTS)
|
||||||
$(CC) -shared -o $@ $(OBJECTS) $(COMMON_OBJECTS)
|
$(AR) -r $@ $(OBJECTS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJECTS) $(COMMON_OBJECTS)
|
$(RM) $(OBJECTS)
|
||||||
$(RM) $(LIB)
|
$(RM) $(LIB)
|
||||||
|
Loading…
Reference in New Issue
Block a user