選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

43 行
1.3 KiB

  1. CC = /usr/bin/gcc
  2. CFLAGS = -Wall -g -O3 -Wextra -Wpedantic
  3. LDLIBS = -lcrypto
  4. SOURCES = params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss.c xmss_core.c xmss_commons.c
  5. HEADERS = params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss.h xmss_core.h xmss_commons.h
  6. SOURCES_FAST = $(subst core,core_fast,$(SOURCES))
  7. HEADERS_FAST = $(subst core,core_fast,$(HEADERS))
  8. TESTS = test/test_wots \
  9. test/test_xmss_core \
  10. test/test_xmss_core_fast \
  11. test/test_xmss \
  12. test/test_xmssmt_core_fast \
  13. test/test_xmssmt_core \
  14. test/test_xmssmt \
  15. test/test_determinism \
  16. UI = test/xmss_keypair \
  17. test/xmss_sign \
  18. test/xmss_open \
  19. test/xmssmt_keypair \
  20. test/xmssmt_sign \
  21. test/xmssmt_open \
  22. all: $(TESTS) $(UI)
  23. .PHONY: clean
  24. test/%_fast: test/%_fast.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
  25. $(CC) $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
  26. test/%: test/%.c $(SOURCES) $(OBJS) $(HEADERS)
  27. $(CC) $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
  28. test/test_wots: params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_commons.c test/test_wots.c params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss_commons.h
  29. $(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_commons.c test/test_wots.c -o $@ -lcrypto
  30. clean:
  31. -$(RM) $(TESTS)
  32. -$(RM) $(UI)