File: Makefile.am

package info (click to toggle)
libb2 0.98.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,304 kB
  • sloc: ansic: 19,855; makefile: 128; sh: 13
file content (152 lines) | stat: -rw-r--r-- 4,800 bytes parent folder | download | duplicates (3)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#   BLAKE2 reference source code package - optimized C implementations
#
#   Written in 2012 by Samuel Neves <sneves@dei.uc.pt>
#
#   To the extent possible under law, the author(s) have dedicated all copyright
#   and related and neighboring rights to this software to the public domain
#   worldwide. This software is distributed without any warranty.
#
#   You should have received a copy of the CC0 Public Domain Dedication along with
#   this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.

EXTRA_DIST = 

CPPFLAGS += $(LTDLINCL) $(OPENMP_CFLAGS)
CFLAGS += $(OPENMP_CFLAGS)
LDFLAGS += -version-info $(B2_LIBRARY_VERSION)

lib_LTLIBRARIES = libb2.la
libb2_la_LIBADD = # -lgomp -lpthread
libb2_la_CPPFLAGS =  -DSUFFIX=  \
                     $(LTDLINCL) \
                     ${top_builddir}/src/

include_HEADERS = blake2.h

if USE_FAT
noinst_LTLIBRARIES = libblake2b_ref.la \
                     libblake2b_sse2.la \
                     libblake2b_ssse3.la \
                     libblake2b_sse41.la \
                     libblake2b_avx.la  \
                     libblake2b_xop.la \
                     libblake2s_ref.la \
                     libblake2s_sse2.la \
                     libblake2s_ssse3.la \
                     libblake2s_sse41.la \
                     libblake2s_avx.la  \
                     libblake2s_xop.la 

libb2_la_SOURCES = blake2-dispatch.c blake2sp.c blake2bp.c
libb2_la_LIBADD += libblake2b_ref.la \
                  libblake2b_sse2.la \
				          libblake2b_ssse3.la \
				          libblake2b_sse41.la \
				          libblake2b_avx.la  \
				          libblake2b_xop.la \
				          libblake2s_ref.la \
                  libblake2s_sse2.la \
                  libblake2s_ssse3.la \
                  libblake2s_sse41.la \
                  libblake2s_avx.la  \
                  libblake2s_xop.la 


libblake2b_ref_la_SOURCES = blake2b-ref.c
libblake2b_ref_la_CPPFLAGS = -DSUFFIX=_ref
libblake2b_ref_la_CFLAGS = 

libblake2b_sse2_la_SOURCES = blake2b.c
libblake2b_sse2_la_CPPFLAGS = -DSUFFIX=_sse2 
libblake2b_sse2_la_CFLAGS = -msse2

libblake2b_ssse3_la_SOURCES = blake2b.c
libblake2b_ssse3_la_CPPFLAGS = -DSUFFIX=_ssse3
libblake2b_ssse3_la_CFLAGS = -msse2 -mssse3

libblake2b_sse41_la_SOURCES = blake2b.c
libblake2b_sse41_la_CPPFLAGS = -DSUFFIX=_sse41 
libblake2b_sse41_la_CFLAGS = -msse2 -mssse3 -msse4.1

libblake2b_avx_la_SOURCES = blake2b.c
libblake2b_avx_la_CPPFLAGS = -DSUFFIX=_avx
libblake2b_avx_la_CFLAGS = -msse2 -mssse3 -msse4.1 -mavx

libblake2b_xop_la_SOURCES = blake2b.c
libblake2b_xop_la_CPPFLAGS = -DSUFFIX=_xop 
libblake2b_xop_la_CFLAGS = -msse2 -mssse3 -msse4.1 -mavx -mxop


libblake2s_ref_la_SOURCES = blake2s-ref.c
libblake2s_ref_la_CPPFLAGS = -DSUFFIX=_ref
libblake2s_ref_la_CFLAGS = 

libblake2s_sse2_la_SOURCES = blake2s.c
libblake2s_sse2_la_CPPFLAGS = -DSUFFIX=_sse2
libblake2s_sse2_la_CFLAGS = -msse2

libblake2s_ssse3_la_SOURCES = blake2s.c
libblake2s_ssse3_la_CPPFLAGS = -DSUFFIX=_ssse3
libblake2s_ssse3_la_CFLAGS = -msse2 -mssse3

libblake2s_sse41_la_SOURCES = blake2s.c
libblake2s_sse41_la_CPPFLAGS = -DSUFFIX=_sse41 
libblake2s_sse41_la_CFLAGS = -msse2 -mssse3 -msse4.1

libblake2s_avx_la_SOURCES = blake2s.c
libblake2s_avx_la_CPPFLAGS = -DSUFFIX=_avx
libblake2s_avx_la_CFLAGS = -msse2 -mssse3 -msse4.1 -mavx

libblake2s_xop_la_SOURCES = blake2s.c
libblake2s_xop_la_CPPFLAGS = -DSUFFIX=_xop 
libblake2s_xop_la_CFLAGS = -msse2 -mssse3 -msse4.1 -mavx -mxop

else

if USE_SSE
libb2_la_SOURCES = blake2sp.c \
                   blake2bp.c \
                   blake2s.c \
                   blake2b.c \
                   blake2-impl.h \
                   blake2-config.h \
                   blake2s-round.h \
                   blake2b-round.h \
                   blake2s-load-xop.h \
                   blake2s-load-sse41.h \
                   blake2s-load-sse2.h \
                   blake2b-load-sse41.h \
                   blake2b-load-sse2.h 
else
libb2_la_SOURCES = blake2s-ref.c \
                   blake2b-ref.c \
                   blake2.h \
                   blake2-impl.h \
                   blake2sp.c \
                   blake2bp.c \
                   blake2-kat.h 
endif
endif

TESTS_TARGETS = blake2s-test \
                blake2b-test \
                blake2sp-test \
                blake2bp-test

check_PROGRAMS = $(TESTS_TARGETS)
TESTS = $(TESTS_TARGETS)

TESTS_LDADD = ${top_builddir}/src/libb2.la

blake2s_test_SOURCE = blake2s-test.c blake2-kat.h 
blake2s_test_LDADD = $(TESTS_LDADD)

blake2b_test_SOURCE = blake2b-test.c blake2-kat.h 
blake2b_test_LDADD = $(TESTS_LDADD)

blake2sp_test_SOURCE = blake2sp-test.c blake2-kat.h
blake2sp_test_LDADD = $(TESTS_LDADD)

blake2bp_test_SOURCE = blake2bp-test.c blake2-kat.h
blake2bp_test_LDADD = $(TESTS_LDADD)