Skip to content

Commit

Permalink
Makefile.am: sort lists
Browse files Browse the repository at this point in the history
  • Loading branch information
gperciva committed Jan 30, 2025
1 parent 2e065bf commit c4fe803
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bin_PROGRAMS= scrypt
noinst_PROGRAMS= \
tests/verify-strings/test_scrypt \
tests/valgrind/potential-memleaks
tests/valgrind/potential-memleaks \
tests/verify-strings/test_scrypt
dist_man_MANS=$(scrypt_man_MANS)
ACLOCAL_AMFLAGS= -I m4

Expand All @@ -14,12 +14,12 @@ ACLOCAL_AMFLAGS= -I m4
# crypto_scrypt() does not require aesni or rdrand, but we need to include
# the relevant cpusupport_x86 files so that cpusupport can link to them.
crypto_scrypt_files= \
lib-platform/crypto/crypto_scrypt.c \
lib-platform/crypto/crypto_scrypt.h \
lib-platform/platform.h \
lib/crypto/crypto_scrypt_smix.c \
lib/crypto/crypto_scrypt_smix.h \
lib/crypto/crypto_scrypt_smix_sse2.h \
lib-platform/platform.h \
lib-platform/crypto/crypto_scrypt.c \
lib-platform/crypto/crypto_scrypt.h \
libcperciva/alg/sha256.c \
libcperciva/alg/sha256.h \
libcperciva/alg/sha256_arm.h \
Expand All @@ -41,8 +41,8 @@ crypto_scrypt_files= \
# Don't include crypto_aesctr_shared.c in this list, as it should be included
# directly into other translation unit(s), and not compiled on its own.
scrypt_SOURCES= \
main.c \
$(crypto_scrypt_files) \
lib-platform/util/memlimit.h \
lib/scryptenc/scryptenc.c \
lib/scryptenc/scryptenc.h \
lib/scryptenc/scryptenc_cpuperf.c \
Expand All @@ -51,7 +51,6 @@ scrypt_SOURCES= \
lib/scryptenc/scryptenc_print_error.h \
lib/util/passphrase_entry.c \
lib/util/passphrase_entry.h \
lib-platform/util/memlimit.h \
libcperciva/crypto/crypto_aes.h \
libcperciva/crypto/crypto_aes_aesni.h \
libcperciva/crypto/crypto_aes_aesni_m128i.h \
Expand Down Expand Up @@ -81,35 +80,36 @@ scrypt_SOURCES= \
libcperciva/util/readpass.c \
libcperciva/util/readpass.h \
libcperciva/util/readpass_file.c \
libcperciva/util/sysendian.h
libcperciva/util/sysendian.h \
main.c

AM_CPPFLAGS= \
-I$(srcdir)/lib \
-I$(srcdir)/lib/crypto \
-I$(srcdir)/lib/scryptenc \
-I$(srcdir)/lib/util \
-I$(srcdir)/lib-platform \
-I$(srcdir)/lib-platform/crypto \
-I$(srcdir)/lib-platform/util \
-I$(srcdir)/lib/crypto \
-I$(srcdir)/lib/scryptenc \
-I$(srcdir)/lib/util \
-I$(srcdir)/libcperciva/alg \
-I$(srcdir)/libcperciva/cpusupport \
-I$(srcdir)/libcperciva/crypto \
-I$(srcdir)/libcperciva/util \
-DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
-DAPISUPPORT_CONFIG_FILE=\"apisupport-config.h\" \
-DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
-D_POSIX_C_SOURCE=200809L \
-D_XOPEN_SOURCE=700 \
${CFLAGS_POSIX}

scrypt_LDADD= \
libcperciva_aesni.la \
libcperciva_arm_aes.la \
libcperciva_arm_sha256.la \
libcperciva_crypto_aes.la \
libcperciva_rdrand.la \
libcperciva_shani.la \
libscrypt_sse2.la \
libscrypt_memlimit.la \
libcperciva_crypto_aes.la \
libcperciva_arm_sha256.la \
libcperciva_arm_aes.la \
libscrypt_sse2.la \
${LDADD_POSIX}
scrypt_man_MANS= scrypt.1

Expand Down Expand Up @@ -168,8 +168,8 @@ libcperciva_crypto_aes_la_CFLAGS=`. ./apisupport-config.h; echo $${CFLAGS_LIBCRY
# Library from libcperciva and scrypt code.
noinst_LTLIBRARIES+= libscrypt_sse2.la
libscrypt_sse2_la_SOURCES= \
libcperciva/alg/sha256_sse2.c \
lib/crypto/crypto_scrypt_smix_sse2.c
lib/crypto/crypto_scrypt_smix_sse2.c \
libcperciva/alg/sha256_sse2.c
nodist_libscrypt_sse2_la_SOURCES= cpusupport-config.h
libscrypt_sse2_la_CFLAGS=`. ./cpusupport-config.h; echo $${CFLAGS_X86_SSE2}`

Expand Down Expand Up @@ -199,9 +199,9 @@ endif
# Shared definitions for libscrypt-kdf.
libscrypt_kdf_la_SOURCES= $(crypto_scrypt_files)
libscrypt_kdf_la_LIBADD= \
libcperciva_arm_sha256.la \
libcperciva_shani.la \
libscrypt_sse2.la \
libcperciva_arm_sha256.la
libscrypt_sse2.la
# Workaround for "created with both libtool and without".
libscrypt_kdf_la_CFLAGS= $(AM_CFLAGS)

Expand Down Expand Up @@ -275,9 +275,9 @@ tests_verify_strings_test_scrypt_SOURCES= \
$(crypto_scrypt_files)

tests_verify_strings_test_scrypt_LDADD= \
libcperciva_arm_sha256.la \
libcperciva_shani.la \
libscrypt_sse2.la \
libcperciva_arm_sha256.la \
${LDADD_POSIX}

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

0 comments on commit c4fe803

Please sign in to comment.