2015-08-11 11:08:27 +01:00
|
|
|
CC = /usr/bin/gcc
|
2016-02-02 13:06:43 +00:00
|
|
|
CFLAGS = -Wall -g -O3 -Wextra
|
2017-10-17 16:11:18 +01:00
|
|
|
LDLIBS = -lcrypto -lm
|
2015-08-11 11:08:27 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
SOURCES = params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss.c xmss_core.c xmss_commons.c
|
|
|
|
HEADERS = params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss.h xmss_core.h xmss_commons.h
|
2015-08-11 11:08:27 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
SOURCES_FAST = $(subst core,core_fast,$(SOURCES))
|
|
|
|
HEADERS_FAST = $(subst core,core_fast,$(HEADERS))
|
2017-06-02 13:10:24 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
TESTS = test/test_wots \
|
|
|
|
test/test_xmss_core \
|
|
|
|
test/test_xmss_core_fast \
|
|
|
|
test/test_xmss \
|
|
|
|
test/test_xmssmt_core_fast \
|
|
|
|
test/test_xmssmt_core \
|
|
|
|
test/test_xmssmt \
|
2017-06-02 13:10:24 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
UI = test/xmss_keypair \
|
|
|
|
test/xmss_sign \
|
|
|
|
test/xmss_open \
|
|
|
|
test/xmssmt_keypair \
|
|
|
|
test/xmssmt_sign \
|
|
|
|
test/xmssmt_open \
|
2015-08-04 13:37:25 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
all: $(TESTS) $(UI)
|
2015-08-21 14:06:07 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
.PHONY: clean
|
2015-09-21 12:24:42 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
test/%_fast: test/%_fast.c $(SOURCES_FAST) $(OBJS) $(HEADERS_FAST)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(SOURCES_FAST) $< $(LDLIBS)
|
2015-08-12 13:37:49 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
test/%: test/%.c $(SOURCES) $(OBJS) $(HEADERS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(SOURCES) $< $(LDLIBS)
|
2017-08-01 14:31:42 +01:00
|
|
|
|
2017-10-17 16:11:18 +01:00
|
|
|
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
|
|
|
|
$(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
|
2017-08-01 14:31:42 +01:00
|
|
|
|
2015-08-04 13:37:25 +01:00
|
|
|
clean:
|
2017-10-17 16:11:18 +01:00
|
|
|
-$(RM) $(TESTS)
|
|
|
|
-$(RM) $(UI)
|