1
1
bin_PROGRAMS = scrypt
2
2
noinst_PROGRAMS = \
3
- tests/verify-strings/test_scrypt \
4
- tests/valgrind/potential-memleaks
3
+ tests/valgrind/potential-memleaks \
4
+ tests/verify-strings/test_scrypt
5
5
dist_man_MANS =$(scrypt_man_MANS )
6
6
ACLOCAL_AMFLAGS = -I m4
7
7
@@ -14,12 +14,12 @@ ACLOCAL_AMFLAGS= -I m4
14
14
# crypto_scrypt() does not require aesni or rdrand, but we need to include
15
15
# the relevant cpusupport_x86 files so that cpusupport can link to them.
16
16
crypto_scrypt_files = \
17
+ lib-platform/crypto/crypto_scrypt.c \
18
+ lib-platform/crypto/crypto_scrypt.h \
19
+ lib-platform/platform.h \
17
20
lib/crypto/crypto_scrypt_smix.c \
18
21
lib/crypto/crypto_scrypt_smix.h \
19
22
lib/crypto/crypto_scrypt_smix_sse2.h \
20
- lib-platform/platform.h \
21
- lib-platform/crypto/crypto_scrypt.c \
22
- lib-platform/crypto/crypto_scrypt.h \
23
23
libcperciva/alg/sha256.c \
24
24
libcperciva/alg/sha256.h \
25
25
libcperciva/alg/sha256_arm.h \
@@ -41,8 +41,8 @@ crypto_scrypt_files= \
41
41
# Don't include crypto_aesctr_shared.c in this list, as it should be included
42
42
# directly into other translation unit(s), and not compiled on its own.
43
43
scrypt_SOURCES = \
44
- main.c \
45
44
$(crypto_scrypt_files ) \
45
+ lib-platform/util/memlimit.h \
46
46
lib/scryptenc/scryptenc.c \
47
47
lib/scryptenc/scryptenc.h \
48
48
lib/scryptenc/scryptenc_cpuperf.c \
@@ -51,7 +51,6 @@ scrypt_SOURCES= \
51
51
lib/scryptenc/scryptenc_print_error.h \
52
52
lib/util/passphrase_entry.c \
53
53
lib/util/passphrase_entry.h \
54
- lib-platform/util/memlimit.h \
55
54
libcperciva/crypto/crypto_aes.h \
56
55
libcperciva/crypto/crypto_aes_aesni.h \
57
56
libcperciva/crypto/crypto_aes_aesni_m128i.h \
@@ -81,35 +80,36 @@ scrypt_SOURCES= \
81
80
libcperciva/util/readpass.c \
82
81
libcperciva/util/readpass.h \
83
82
libcperciva/util/readpass_file.c \
84
- libcperciva/util/sysendian.h
83
+ libcperciva/util/sysendian.h \
84
+ main.c
85
85
86
86
AM_CPPFLAGS = \
87
87
-I$(srcdir ) /lib \
88
- -I$(srcdir ) /lib/crypto \
89
- -I$(srcdir ) /lib/scryptenc \
90
- -I$(srcdir ) /lib/util \
91
88
-I$(srcdir ) /lib-platform \
92
89
-I$(srcdir ) /lib-platform/crypto \
93
90
-I$(srcdir ) /lib-platform/util \
91
+ -I$(srcdir ) /lib/crypto \
92
+ -I$(srcdir ) /lib/scryptenc \
93
+ -I$(srcdir ) /lib/util \
94
94
-I$(srcdir ) /libcperciva/alg \
95
95
-I$(srcdir ) /libcperciva/cpusupport \
96
96
-I$(srcdir ) /libcperciva/crypto \
97
97
-I$(srcdir ) /libcperciva/util \
98
- -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
99
98
-DAPISUPPORT_CONFIG_FILE=\"apisupport-config.h\" \
99
+ -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
100
100
-D_POSIX_C_SOURCE=200809L \
101
101
-D_XOPEN_SOURCE=700 \
102
102
${CFLAGS_POSIX}
103
103
104
104
scrypt_LDADD = \
105
105
libcperciva_aesni.la \
106
+ libcperciva_arm_aes.la \
107
+ libcperciva_arm_sha256.la \
108
+ libcperciva_crypto_aes.la \
106
109
libcperciva_rdrand.la \
107
110
libcperciva_shani.la \
108
- libscrypt_sse2.la \
109
111
libscrypt_memlimit.la \
110
- libcperciva_crypto_aes.la \
111
- libcperciva_arm_sha256.la \
112
- libcperciva_arm_aes.la \
112
+ libscrypt_sse2.la \
113
113
${LDADD_POSIX}
114
114
scrypt_man_MANS = scrypt.1
115
115
@@ -168,8 +168,8 @@ libcperciva_crypto_aes_la_CFLAGS=`. ./apisupport-config.h; echo $${CFLAGS_LIBCRY
168
168
# Library from libcperciva and scrypt code.
169
169
noinst_LTLIBRARIES+ = libscrypt_sse2.la
170
170
libscrypt_sse2_la_SOURCES = \
171
- libcperciva/alg/sha256_sse2.c \
172
- lib/crypto/crypto_scrypt_smix_sse2 .c
171
+ lib/crypto/crypto_scrypt_smix_sse2.c \
172
+ libcperciva/alg/sha256_sse2 .c
173
173
nodist_libscrypt_sse2_la_SOURCES = cpusupport-config.h
174
174
libscrypt_sse2_la_CFLAGS =` . ./cpusupport-config.h; echo $$ {CFLAGS_X86_SSE2} `
175
175
@@ -199,9 +199,9 @@ endif
199
199
# Shared definitions for libscrypt-kdf.
200
200
libscrypt_kdf_la_SOURCES = $(crypto_scrypt_files )
201
201
libscrypt_kdf_la_LIBADD = \
202
+ libcperciva_arm_sha256.la \
202
203
libcperciva_shani.la \
203
- libscrypt_sse2.la \
204
- libcperciva_arm_sha256.la
204
+ libscrypt_sse2.la
205
205
# Workaround for "created with both libtool and without".
206
206
libscrypt_kdf_la_CFLAGS = $(AM_CFLAGS )
207
207
@@ -275,9 +275,9 @@ tests_verify_strings_test_scrypt_SOURCES= \
275
275
$(crypto_scrypt_files )
276
276
277
277
tests_verify_strings_test_scrypt_LDADD = \
278
+ libcperciva_arm_sha256.la \
278
279
libcperciva_shani.la \
279
280
libscrypt_sse2.la \
280
- libcperciva_arm_sha256.la \
281
281
${LDADD_POSIX}
282
282
283
283
# Eliminate false positives while memory-checking for the test framework.
0 commit comments