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.
 
 
 

32 lines
937 B

  1. # This Makefile can be used with GNU Make or BSD Make
  2. LIB = libmceliece6960119_vec.a
  3. SOURCES = aes256ctr.c benes.c bm.c controlbits.c decrypt.c encrypt.c fft.c \
  4. fft_tr.c gf.c operations.c pk_gen.c sk_gen.c transpose.c util.c \
  5. vec.c
  6. HEADERS = aes256ctr.h api.h benes.h bm.h controlbits.h crypto_hash.h decrypt.h \
  7. encrypt.h fft.h fft_tr.h gf.h params.h pk_gen.h sk_gen.h \
  8. transpose.h util.h vec.h \
  9. consts.inc scalars_2x.inc scalars_4x.inc
  10. OBJECTS = aes256ctr.o benes.o bm.o controlbits.o decrypt.o encrypt.o fft.o \
  11. fft_tr.o gf.o operations.o pk_gen.o sk_gen.o transpose.o util.o vec.o
  12. CFLAGS = -O3 -std=c99 -Wall -Wextra -pedantic -Werror -Wpedantic \
  13. -Wredundant-decls -Wvla -Wcast-align -Wmissing-prototypes \
  14. -I../../../common/ $(EXTRAFLAGS)
  15. all: $(LIB)
  16. %.o: %.c $(HEADERS)
  17. $(CC) $(CFLAGS) -c -o $@ $<
  18. $(LIB): $(OBJECTS)
  19. $(AR) -r $@ $(OBJECTS)
  20. clean:
  21. $(RM) $(OBJECTS)
  22. $(RM) $(LIB)