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
|
2015-08-11 11:08:27 +01:00
|
|
|
|
2016-07-11 10:15:16 +01:00
|
|
|
all: test/test_wots \
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmss_core \
|
|
|
|
test/test_xmss_core_fast \
|
2017-08-01 14:31:42 +01:00
|
|
|
test/test_xmss \
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmssmt_core_fast \
|
|
|
|
test/test_xmssmt_core \
|
2017-08-01 14:31:42 +01:00
|
|
|
test/test_xmssmt
|
2015-08-11 11:08:27 +01:00
|
|
|
|
2017-06-02 13:10:24 +01:00
|
|
|
.PHONY: clean
|
|
|
|
.PRECIOUS: params_%.h
|
|
|
|
|
|
|
|
params_%.h: params.h.py
|
|
|
|
python3 params.h.py $(patsubst params_%.h,%,$@) > $@
|
|
|
|
|
2017-10-16 10:58:45 +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-06-02 13:10:24 +01:00
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmss_core: params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c test/test_xmss_core.c params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss_core.h xmss_commons.h
|
|
|
|
$(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c test/test_xmss_core.c -o $@ -lcrypto -lm
|
2015-08-04 13:37:25 +01:00
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmss_core_fast: params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core_fast.c xmss_commons.c test/test_xmss_core_fast.c params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss_core_fast.h xmss_commons.h
|
|
|
|
$(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core_fast.c xmss_commons.c test/test_xmss_core_fast.c -o $@ -lcrypto -lm
|
2015-08-21 14:06:07 +01:00
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmssmt_core: params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c test/test_xmssmt_core.c params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss_core.h xmss_commons.h
|
|
|
|
$(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c test/test_xmssmt_core.c -o $@ -lcrypto -lm
|
2015-09-21 12:24:42 +01:00
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmssmt_core_fast: params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core_fast.c xmss_commons.c test/test_xmssmt_core_fast.c params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss_core_fast.h xmss_commons.h
|
|
|
|
$(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core_fast.c xmss_commons.c test/test_xmssmt_core_fast.c -o $@ -lcrypto -lm
|
2015-08-12 13:37:49 +01:00
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmss: params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c xmss.c test/test_xmss.c params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss_core.h xmss_commons.h xmss.h
|
|
|
|
$(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c xmss.c test/test_xmss.c -o $@ -lcrypto -lm
|
2017-08-01 14:31:42 +01:00
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
test/test_xmssmt: params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c xmss.c test/test_xmssmt.c params.h hash.h fips202.h hash_address.h randombytes.h wots.h xmss_core.h xmss_commons.h xmss.h
|
|
|
|
$(CC) $(CFLAGS) params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss_core.c xmss_commons.c xmss.c test/test_xmssmt.c -o $@ -lcrypto -lm
|
2017-08-01 14:31:42 +01:00
|
|
|
|
2015-08-04 13:37:25 +01:00
|
|
|
clean:
|
2015-08-12 13:37:49 +01:00
|
|
|
-rm test/test_wots
|
2017-10-16 10:58:45 +01:00
|
|
|
-rm test/test_xmss_core
|
|
|
|
-rm test/test_xmss_core_fast
|
2017-08-01 14:31:42 +01:00
|
|
|
-rm test/test_xmss
|
2017-10-16 10:58:45 +01:00
|
|
|
-rm test/test_xmssmt_core
|
|
|
|
-rm test/test_xmssmt_core_fast
|
2017-08-01 14:31:42 +01:00
|
|
|
-rm test/test_xmssmt
|
2017-06-02 13:10:24 +01:00
|
|
|
|
2017-08-01 14:31:42 +01:00
|
|
|
distclean: clean
|
2017-06-02 13:10:24 +01:00
|
|
|
-rm params.h
|
|
|
|
-rm params_XMSS*.h
|