Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Makefile 1.3 KiB

9 år sedan
9 år sedan
9 år sedan
9 år sedan
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. CC = /usr/bin/gcc
  2. CFLAGS = -Wall -g -O3 -Wextra
  3. LDLIBS = -lcrypto -lm
  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. UI = test/xmss_keypair \
  16. test/xmss_sign \
  17. test/xmss_open \
  18. test/xmssmt_keypair \
  19. test/xmssmt_sign \
  20. test/xmssmt_open \
  21. all: $(TESTS) $(UI)
  22. .PHONY: clean
  23. test/%_fast: test/%_fast.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
  24. $(CC) $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
  25. test/%: test/%.c $(SOURCES) $(OBJS) $(HEADERS)
  26. $(CC) $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
  27. 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
  28. $(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_commons.c test/test_wots.c -o $@ -lcrypto -lm
  29. clean:
  30. -$(RM) $(TESTS)
  31. -$(RM) $(UI)