You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
665 B

  1. # This Makefile can be used with GNU Make or BSD Make
  2. LIB=libledakemlt12_leaktime.a
  3. HEADERS=api.h bf_decoding.h dfr_test.h gf2x_arith_mod_xPplusOne.h \
  4. gf2x_arith.h H_Q_matrices_generation.h \
  5. niederreiter.h qc_ldpc_parameters.h rng.h sort.h utils.h
  6. OBJECTS=bf_decoding.o dfr_test.o gf2x_arith_mod_xPplusOne.o \
  7. gf2x_arith.o H_Q_matrices_generation.o kem.o niederreiter.o rng.o sort.o utils.o
  8. CFLAGS=-O3 -Wall -Werror -Wextra -Wvla -Wpedantic -Wmissing-prototypes -std=c99 \
  9. -I../../../common $(EXTRAFLAGS)
  10. all: $(LIB)
  11. %.o: %.c $(HEADERS)
  12. $(CC) $(CFLAGS) -c -o $@ $<
  13. $(LIB): $(OBJECTS)
  14. $(AR) -r $@ $(OBJECTS)
  15. clean:
  16. $(RM) $(OBJECTS)
  17. $(RM) $(LIB)