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

25 lines
649 B
Makefile
Raw Normal View History

2019-06-10 17:57:26 +01:00
# This Makefile can be used with GNU Make or BSD Make
2019-06-16 16:01:29 +01:00
LIB=libledakemlt52_leaktime.a
2019-06-10 17:57:26 +01:00
HEADERS=api.h bf_decoding.h dfr_test.h gf2x_arith_mod_xPplusOne.h \
gf2x_arith.h H_Q_matrices_generation.h \
2019-08-21 13:28:31 +01:00
niederreiter.h qc_ldpc_parameters.h rng.h sort.h
2019-06-10 17:57:26 +01:00
OBJECTS=bf_decoding.o dfr_test.o gf2x_arith_mod_xPplusOne.o \
2019-08-21 13:28:31 +01:00
gf2x_arith.o H_Q_matrices_generation.o kem.o niederreiter.o rng.o sort.o
2019-06-10 17:57:26 +01:00
CFLAGS=-O3 -Wall -Werror -Wextra -Wvla -Wpedantic -Wmissing-prototypes -std=c99 \
-I../../../common $(EXTRAFLAGS)
all: $(LIB)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c -o $@ $<
$(LIB): $(OBJECTS)
$(AR) -r $@ $(OBJECTS)
clean:
$(RM) $(OBJECTS)
$(RM) $(LIB)