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.
 
 
 

29 lines
920 B

  1. # This Makefile can be used with GNU Make or BSD Make
  2. LIB=libsphincs-shake256-128f-simple_avx2.a
  3. HEADERS = params.h address.h wots.h utils.h utilsx4.h fips202x4.h fors.h api.h hash.h hashx4.h hash_state.h thash.h thashx4.h
  4. OBJECTS = address.o wots.o utils.o utilsx4.o fips202x4.o fors.o sign.o hash_shake256.o thash_shake256_simple.o hash_shake256x4.o thash_shake256_simplex4.o
  5. KECCAK4XDIR=../../../common/keccak4x
  6. KECCAK4XOBJ=KeccakP-1600-times4-SIMD256.o
  7. KECCAK4X=$(KECCAK4XDIR)/$(KECCAK4XOBJ)
  8. CFLAGS=-mavx2 -O3 -Wall -Wconversion -Wextra -Wpedantic -Wvla -Werror -Wmissing-prototypes -Wredundant-decls -std=c99 -I../../../common $(EXTRAFLAGS)
  9. all: $(LIB)
  10. %.o: %.c $(HEADERS)
  11. $(CC) $(CFLAGS) -c -o $@ $<
  12. $(LIB): $(OBJECTS) $(KECCAK4X)
  13. $(AR) -r $@ $(OBJECTS) $(KECCAK4X)
  14. $(KECCAK4X):
  15. $(MAKE) -C $(KECCAK4XDIR) $(KECCAK4XOBJ)
  16. clean:
  17. $(RM) $(OBJECTS)
  18. $(RM) $(LIB)
  19. $(MAKE) -C $(KECCAK4XDIR) clean