-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile.am
125 lines (108 loc) · 3.08 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
ACLOCAL_AMFLAGS = -I m4
include_HEADERS = include/argon2.h
lib_LTLIBRARIES = libargon2.la
noinst_LTLIBRARIES =
bin_PROGRAMS = argon2
noinst_PROGRAMS = argon2-genkat argon2-bench2 argon2-test
TESTS = argon2-test
AM_CPPFLAGS = \
-I$(srcdir)/include \
-I$(srcdir)/lib \
-I$(srcdir)/arch/@ARCH@/include \
-I$(srcdir)/arch/@ARCH@/lib
libargon2_la_CFLAGS = @PTHREAD_CFLAGS@
libargon2_la_LIBADD = @PTHREAD_LIBS@
libargon2_la_SOURCES = \
lib/argon2.c \
lib/core.c \
lib/encoding.c \
lib/genkat.c \
lib/impl-select.c \
lib/thread.c \
lib/blake2/blake2.c \
lib/argon2-template-64.h \
lib/core.h \
lib/encoding.h \
lib/genkat.h \
lib/impl-select.h \
lib/thread.h \
lib/blake2/blake2.h \
lib/blake2/blake2-impl.h
if ARCH_X86_64
noinst_LTLIBRARIES += \
libargon2-sse2.la \
libargon2-ssse3.la \
libargon2-xop.la \
libargon2-avx2.la \
libargon2-avx512f.la
libargon2_la_LIBADD += \
libargon2-sse2.la \
libargon2-ssse3.la \
libargon2-xop.la \
libargon2-avx2.la \
libargon2-avx512f.la
libargon2_sse2_la_SOURCES = \
arch/@ARCH@/lib/argon2-sse2.c \
arch/@ARCH@/lib/argon2-sse2.h \
arch/@ARCH@/lib/argon2-template-128.h
libargon2_sse2_la_CPPFLAGS = $(AM_CPPFLAGS)
libargon2_sse2_la_CFLAGS = $(AM_CFLAGS)
if HAVE_SSE2
libargon2_sse2_la_CPPFLAGS += -DHAVE_SSE2
libargon2_sse2_la_CFLAGS += -msse2
endif # HAVE_SSE2
libargon2_ssse3_la_SOURCES = \
arch/@ARCH@/lib/argon2-ssse3.c \
arch/@ARCH@/lib/argon2-ssse3.h \
arch/@ARCH@/lib/argon2-template-128.h
libargon2_ssse3_la_CPPFLAGS = $(AM_CPPFLAGS)
libargon2_ssse3_la_CFLAGS = $(AM_CFLAGS)
if HAVE_SSSE3
libargon2_ssse3_la_CPPFLAGS += -DHAVE_SSSE3
libargon2_ssse3_la_CFLAGS += -mssse3
endif # HAVE_SSSE3
libargon2_xop_la_SOURCES = \
arch/@ARCH@/lib/argon2-xop.c \
arch/@ARCH@/lib/argon2-xop.h \
arch/@ARCH@/lib/argon2-template-128.h
libargon2_xop_la_CPPFLAGS = $(AM_CPPFLAGS)
libargon2_xop_la_CFLAGS = $(AM_CFLAGS)
if HAVE_XOP
libargon2_xop_la_CPPFLAGS += -DHAVE_XOP
libargon2_xop_la_CFLAGS += -mxop
endif # HAVE_XOP
libargon2_avx2_la_SOURCES = \
arch/@ARCH@/lib/argon2-avx2.c \
arch/@ARCH@/lib/argon2-avx2.h
libargon2_avx2_la_CPPFLAGS = $(AM_CPPFLAGS)
libargon2_avx2_la_CFLAGS = $(AM_CFLAGS)
if HAVE_AVX2
libargon2_avx2_la_CPPFLAGS += -DHAVE_AVX2
libargon2_avx2_la_CFLAGS += -mavx2
endif # HAVE_AVX2
libargon2_avx512f_la_SOURCES = \
arch/@ARCH@/lib/argon2-avx512f.c \
arch/@ARCH@/lib/argon2-avx512f.h
libargon2_avx512f_la_CPPFLAGS = $(AM_CPPFLAGS)
libargon2_avx512f_la_CFLAGS = $(AM_CFLAGS)
if HAVE_AVX512F
libargon2_avx512f_la_CPPFLAGS += -DHAVE_AVX512F
libargon2_avx512f_la_CFLAGS += -mavx512f
endif # HAVE_AVX512F
libargon2_la_SOURCES += \
arch/@ARCH@/lib/argon2-arch.c \
arch/@ARCH@/lib/cpu-flags.c \
arch/@ARCH@/lib/cpu-flags.h
endif # ARCH_X86_64
if ARCH_GENERIC
libargon2_la_SOURCES += \
arch/@ARCH@/lib/argon2-arch.c
endif # ARCH_GENERIC
argon2_LDADD = libargon2.la
argon2_SOURCES = src/run.c lib/core.h
argon2_genkat_LDADD = libargon2.la
argon2_genkat_SOURCES = src/genkat.c
argon2_bench2_LDADD = libargon2.la -lrt
argon2_bench2_SOURCES = src/bench2.c src/timing.h
argon2_test_LDADD = libargon2.la
argon2_test_SOURCES = tests/test.c