Skip to content

Commit e0ca4ba

Browse files
gpercivacperciva
authored andcommitted
Makefile.am: sort lists
Also, remove memlimit.h from libscrypt_memlimit.la; it's not needed.
1 parent 847abc3 commit e0ca4ba

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

Makefile.am

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
bin_PROGRAMS= scrypt
22
noinst_PROGRAMS= \
3-
tests/verify-strings/test_scrypt \
4-
tests/valgrind/potential-memleaks
3+
tests/valgrind/potential-memleaks \
4+
tests/verify-strings/test_scrypt
55
dist_man_MANS=$(scrypt_man_MANS)
66
ACLOCAL_AMFLAGS= -I m4
77

@@ -11,12 +11,12 @@ ACLOCAL_AMFLAGS= -I m4
1111
# which require special compiler flags and are thus compiled as separate
1212
# libraries. See test_scrypt for an example.
1313
crypto_scrypt_files= \
14+
lib-platform/crypto/crypto_scrypt.c \
15+
lib-platform/crypto/crypto_scrypt.h \
16+
lib-platform/platform.h \
1417
lib/crypto/crypto_scrypt_smix.c \
1518
lib/crypto/crypto_scrypt_smix.h \
1619
lib/crypto/crypto_scrypt_smix_sse2.h \
17-
lib-platform/platform.h \
18-
lib-platform/crypto/crypto_scrypt.c \
19-
lib-platform/crypto/crypto_scrypt.h \
2020
libcperciva/alg/sha256.c \
2121
libcperciva/alg/sha256.h \
2222
libcperciva/alg/sha256_arm.h \
@@ -31,8 +31,8 @@ crypto_scrypt_files= \
3131
# Don't include crypto_aesctr_shared.c in this list, as it should be included
3232
# directly into other translation unit(s), and not compiled on its own.
3333
scrypt_SOURCES= \
34-
main.c \
3534
$(crypto_scrypt_files) \
35+
lib-platform/util/memlimit.h \
3636
lib/scryptenc/scryptenc.c \
3737
lib/scryptenc/scryptenc.h \
3838
lib/scryptenc/scryptenc_cpuperf.c \
@@ -41,7 +41,6 @@ scrypt_SOURCES= \
4141
lib/scryptenc/scryptenc_print_error.h \
4242
lib/util/passphrase_entry.c \
4343
lib/util/passphrase_entry.h \
44-
lib-platform/util/memlimit.h \
4544
libcperciva/crypto/crypto_aes.h \
4645
libcperciva/crypto/crypto_aes_aesni.h \
4746
libcperciva/crypto/crypto_aes_aesni_m128i.h \
@@ -71,22 +70,23 @@ scrypt_SOURCES= \
7170
libcperciva/util/readpass.c \
7271
libcperciva/util/readpass.h \
7372
libcperciva/util/readpass_file.c \
74-
libcperciva/util/sysendian.h
73+
libcperciva/util/sysendian.h \
74+
main.c
7575

7676
AM_CPPFLAGS= \
7777
-I$(srcdir)/lib \
78-
-I$(srcdir)/lib/crypto \
79-
-I$(srcdir)/lib/scryptenc \
80-
-I$(srcdir)/lib/util \
8178
-I$(srcdir)/lib-platform \
8279
-I$(srcdir)/lib-platform/crypto \
8380
-I$(srcdir)/lib-platform/util \
81+
-I$(srcdir)/lib/crypto \
82+
-I$(srcdir)/lib/scryptenc \
83+
-I$(srcdir)/lib/util \
8484
-I$(srcdir)/libcperciva/alg \
8585
-I$(srcdir)/libcperciva/cpusupport \
8686
-I$(srcdir)/libcperciva/crypto \
8787
-I$(srcdir)/libcperciva/util \
88-
-DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
8988
-DAPISUPPORT_CONFIG_FILE=\"apisupport-config.h\" \
89+
-DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
9090
-D_POSIX_C_SOURCE=200809L \
9191
-D_XOPEN_SOURCE=700 \
9292
${CFLAGS_POSIX}
@@ -98,13 +98,13 @@ scrypt_LDADD= \
9898
libcperciva_crypto_aes.la \
9999
\
100100
libcperciva_aesni.la \
101+
libcperciva_arm_aes.la \
102+
libcperciva_arm_sha256.la \
103+
libcperciva_cpusupport_detect.la \
101104
libcperciva_rdrand.la \
102105
libcperciva_shani.la \
103-
libscrypt_sse2.la \
104106
libscrypt_memlimit.la \
105-
libcperciva_arm_sha256.la \
106-
libcperciva_arm_aes.la \
107-
libcperciva_cpusupport_detect.la \
107+
libscrypt_sse2.la \
108108
${LDADD_POSIX}
109109
scrypt_man_MANS= scrypt.1
110110

@@ -174,25 +174,24 @@ nodist_libcperciva_cpusupport_detect_la_SOURCES= cpusupport-config.h
174174
# Library from libcperciva and scrypt code.
175175
noinst_LTLIBRARIES+= libscrypt_sse2.la
176176
libscrypt_sse2_la_SOURCES= \
177-
libcperciva/alg/sha256_sse2.c \
178-
lib/crypto/crypto_scrypt_smix_sse2.c
177+
lib/crypto/crypto_scrypt_smix_sse2.c \
178+
libcperciva/alg/sha256_sse2.c
179179
nodist_libscrypt_sse2_la_SOURCES= cpusupport-config.h
180180
libscrypt_sse2_la_CFLAGS=`. ./cpusupport-config.h; echo $${CFLAGS_X86_SSE2}`
181181

182182
# This library uses non-POSIX functionality, so we need to cancel the
183183
# _POSIX_C_SOURCE and _XOPEN_SOURCE defined in AM_CPPFLAGS.
184184
noinst_LTLIBRARIES+= libscrypt_memlimit.la
185185
libscrypt_memlimit_la_SOURCES= \
186-
lib-platform/util/memlimit.c \
187-
lib-platform/util/memlimit.h
186+
lib-platform/util/memlimit.c
188187
libscrypt_memlimit_la_CFLAGS=`. ./apisupport-config.h; echo $${CFLAGS_NONPOSIX_MEMLIMIT}`
189188

190189
# Install libscrypt-kdf?
191190
if LIBSCRYPT_KDF
192191
lib_LTLIBRARIES= libscrypt-kdf.la
193192
libscrypt_kdf_la_LDFLAGS= \
194-
-version-info 1 \
195-
-export-symbols-regex 'crypto_scrypt$$'
193+
-export-symbols-regex 'crypto_scrypt$$' \
194+
-version-info 1
196195
include_HEADERS= libscrypt-kdf/scrypt-kdf.h
197196
noinst_PROGRAMS+= tests/libscrypt-kdf/sample-libscrypt-kdf
198197
else
@@ -205,10 +204,10 @@ endif
205204
# Shared definitions for libscrypt-kdf.
206205
libscrypt_kdf_la_SOURCES= $(crypto_scrypt_files)
207206
libscrypt_kdf_la_LIBADD= \
207+
libcperciva_arm_sha256.la \
208208
libcperciva_cpusupport_detect.la \
209209
libcperciva_shani.la \
210-
libscrypt_sse2.la \
211-
libcperciva_arm_sha256.la
210+
libscrypt_sse2.la
212211
# Workaround for "created with both libtool and without".
213212
libscrypt_kdf_la_CFLAGS= $(AM_CFLAGS)
214213

@@ -282,10 +281,10 @@ tests_verify_strings_test_scrypt_SOURCES= \
282281
$(crypto_scrypt_files)
283282

284283
tests_verify_strings_test_scrypt_LDADD= \
285-
libcperciva_shani.la \
286-
libscrypt_sse2.la \
287284
libcperciva_arm_sha256.la \
288285
libcperciva_cpusupport_detect.la \
286+
libcperciva_shani.la \
287+
libscrypt_sse2.la \
289288
${LDADD_POSIX}
290289

291290
# Eliminate false positives while memory-checking for the test framework.

0 commit comments

Comments
 (0)