]> iEval git - authen-passphrase-scrypt.git/blob - scrypt-1.2.1/autotools/Makefile.am
Bump version and update Changes
[authen-passphrase-scrypt.git] / scrypt-1.2.1 / autotools / Makefile.am
1 bin_PROGRAMS= scrypt
2 noinst_PROGRAMS= tests/test_scrypt tests/valgrind/potential-memleaks
3 dist_man_MANS=$(scrypt_man_MANS)
4
5 scrypt_SOURCES= main.c \
6 libcperciva/alg/sha256.c \
7 libcperciva/cpusupport/cpusupport_x86_aesni.c \
8 libcperciva/cpusupport/cpusupport_x86_sse2.c \
9 libcperciva/crypto/crypto_aes.c \
10 libcperciva/crypto/crypto_aesctr.c \
11 libcperciva/crypto/crypto_entropy.c \
12 libcperciva/util/asprintf.c \
13 libcperciva/util/entropy.c \
14 libcperciva/util/getopt.c \
15 libcperciva/util/humansize.c \
16 libcperciva/util/insecure_memzero.c \
17 libcperciva/util/readpass.c \
18 libcperciva/util/warnp.c \
19 lib/crypto/crypto_scrypt.c \
20 lib/crypto/crypto_scrypt_smix.c \
21 lib/scryptenc/scryptenc.c \
22 lib/scryptenc/scryptenc_cpuperf.c \
23 lib/util/memlimit.c \
24 lib/crypto/crypto_scrypt.h \
25 lib/crypto/crypto_scrypt_smix.h \
26 lib/crypto/crypto_scrypt_smix_sse2.h \
27 lib/scryptenc/scryptenc.h \
28 lib/scryptenc/scryptenc_cpuperf.h \
29 lib/util/memlimit.h \
30 libcperciva/alg/sha256.h \
31 libcperciva/cpusupport/cpusupport.h \
32 libcperciva/crypto/crypto_aes.h \
33 libcperciva/crypto/crypto_aes_aesni.h \
34 libcperciva/crypto/crypto_aesctr.h \
35 libcperciva/crypto/crypto_entropy.h \
36 libcperciva/util/asprintf.h \
37 libcperciva/util/entropy.h \
38 libcperciva/util/getopt.h \
39 libcperciva/util/humansize.h \
40 libcperciva/util/insecure_memzero.h \
41 libcperciva/util/readpass.h \
42 libcperciva/util/sysendian.h \
43 libcperciva/util/warnp.h \
44 scrypt_platform.h
45
46 AM_CPPFLAGS= -I$(srcdir)/libcperciva/alg \
47 -I$(srcdir)/libcperciva/cpusupport \
48 -I$(srcdir)/libcperciva/crypto \
49 -I$(srcdir)/libcperciva/util \
50 -I$(srcdir)/lib/crypto \
51 -I$(srcdir)/lib/scryptenc \
52 -I$(srcdir)/lib/util \
53 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
54 -D_POSIX_C_SOURCE=200809L
55
56 scrypt_LDADD= libcperciva_aesni.a libscrypt_sse2.a
57 scrypt_man_MANS= scrypt.1
58
59 cpusupport-config.h:
60 ( export CC="${CC}"; export CFLAGS="${CFLAGS}"; command -p sh $(srcdir)/libcperciva/cpusupport/Build/cpusupport.sh "$$PATH") > cpusupport-config.h.tmp && command -p mv cpusupport-config.h.tmp cpusupport-config.h
61 BUILT_SOURCES= cpusupport-config.h
62 CLEANFILES= cpusupport-config.h cpusupport-config.h.tmp
63
64 noinst_LIBRARIES= libcperciva_aesni.a
65 libcperciva_aesni_a_SOURCES= libcperciva/crypto/crypto_aes_aesni.c
66 libcperciva_aesni_a_CFLAGS=`. ./cpusupport-config.h; echo $${CFLAGS_X86_AESNI}`
67
68 noinst_LIBRARIES+= libscrypt_sse2.a
69 libscrypt_sse2_a_SOURCES= lib/crypto/crypto_scrypt_smix_sse2.c
70 libscrypt_sse2_a_CFLAGS=`. ./cpusupport-config.h; echo $${CFLAGS_X86_SSE2}`
71
72 EXTRA_DIST = \
73 COPYRIGHT \
74 FORMAT \
75 lib/README \
76 README.md \
77 lib/crypto/crypto_scrypt-ref.c \
78 libcperciva/cpusupport/Build/cpusupport-X86-AESNI.c \
79 libcperciva/cpusupport/Build/cpusupport-X86-CPUID.c \
80 libcperciva/cpusupport/Build/cpusupport-X86-SSE2.c \
81 libcperciva/cpusupport/Build/cpusupport.sh \
82 tests/test_scrypt.good \
83 tests/test_scrypt_good.enc \
84 tests/shared_test_functions.sh \
85 tests/01-known-values.sh \
86 tests/02-decrypt-reference-file.sh \
87 tests/03-encrypt-decrypt-file.sh \
88 tests/04-force-resources.sh \
89 tests/05-system-scrypt-encrypt-decrypt.sh \
90 tests/test_scrypt.sh
91
92 tests_test_scrypt_SOURCES = tests/test_scrypt.c \
93 libcperciva/alg/sha256.c \
94 libcperciva/alg/sha256.h \
95 libcperciva/cpusupport/cpusupport_x86_sse2.c \
96 libcperciva/util/insecure_memzero.c \
97 libcperciva/util/insecure_memzero.h \
98 libcperciva/util/warnp.c \
99 libcperciva/util/warnp.h \
100 lib/crypto/crypto_scrypt.c \
101 lib/crypto/crypto_scrypt.h \
102 lib/crypto/crypto_scrypt_smix.c \
103 lib/crypto/crypto_scrypt_smix.h
104
105 tests_test_scrypt_LDADD= libscrypt_sse2.a
106
107 tests_valgrind_potential_memleaks_SOURCES = tests/valgrind/potential-memleaks.c
108
109 .PHONY: test
110 # we can't only build "scrypt tests/test_scrypt" because that won't build
111 # the BUILT_SOURCES.
112 test: all
113 $(top_srcdir)/tests/test_scrypt.sh .
This page took 0.051287 seconds and 5 git commands to generate.