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.

23 lines
954 B

  1. CC = /usr/bin/gcc
  2. CFLAGS = -Wall -g -O3
  3. all: test/test_chacha \
  4. test/test_wots \
  5. test/test_xmss
  6. test/test_chacha: chacha.c prg.c randombytes.c test/test_chacha.c chacha.h prg.h randombytes.h
  7. $(CC) $(CFLAGS) chacha.c prg.c randombytes.c test/test_chacha.c -o $@ #-lcrypto -lm
  8. test/test_wots: chacha.c hash.c prg.c randombytes.c wots.c xmss_commons.c test/test_wots.c chacha.h hash.h prg.h randombytes.h wots.h xmss_commons.h
  9. $(CC) $(CFLAGS) chacha.c hash.c prg.c randombytes.c wots.c xmss_commons.c test/test_wots.c -o $@ -lcrypto -lm
  10. test/test_xmss: chacha.c hash.c prg.c randombytes.c wots.c xmss.c xmss_commons.c test/test_xmss.c chacha.h hash.h prg.h randombytes.h wots.h xmss.h xmss_commons.h
  11. $(CC) $(CFLAGS) chacha.c hash.c prg.c randombytes.c wots.c xmss.c xmss_commons.c test/test_xmss.c -o $@ -lcrypto -lm
  12. debug:clean
  13. $(CC) $(CFLAGS) -g -o xmss_ref main.c
  14. stable:clean
  15. $(CC) $(CFLAGS) -o xmss_ref main.c
  16. clean:
  17. rm -vfr *~ xmss_ref