]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/check/Makefile.am
74011695aef4590d8912a355f2fdb315d73e14f3
[icculus/xz.git] / src / liblzma / check / Makefile.am
1 ##
2 ##  This code has been put into the public domain.
3 ##
4 ##  This library is distributed in the hope that it will be useful,
5 ##  but WITHOUT ANY WARRANTY; without even the implied warranty of
6 ##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7 ##  Lesser General Public License for more details.
8 ##
9
10 EXTRA_DIST = crc32_tablegen.c crc64_tablegen.c
11
12 noinst_LTLIBRARIES = libcheck.la
13 libcheck_la_SOURCES = \
14         check.c \
15         check.h \
16         crc_macros.h
17 libcheck_la_CPPFLAGS = \
18         -I@top_srcdir@/src/liblzma/api \
19         -I@top_srcdir@/src/liblzma/common
20
21 if COND_CHECK_CRC32
22 if COND_SMALL
23 libcheck_la_SOURCES += crc32_small.c
24 else
25 libcheck_la_SOURCES += crc32_table.c crc32_table_le.h crc32_table_be.h
26 if COND_ASM_X86
27 libcheck_la_SOURCES += crc32_x86.S
28 else
29 libcheck_la_SOURCES += crc32_fast.c
30 endif
31 endif
32 endif
33
34 if COND_CHECK_CRC64
35 if COND_SMALL
36 libcheck_la_SOURCES += crc64_small.c
37 else
38 libcheck_la_SOURCES += crc64_table.c crc64_table_le.h crc64_table_be.h
39 if COND_ASM_X86
40 libcheck_la_SOURCES += crc64_x86.S
41 else
42 libcheck_la_SOURCES += crc64_fast.c
43 endif
44 endif
45 endif
46
47 if COND_CHECK_SHA256
48 libcheck_la_SOURCES += sha256.c
49 # Hide bogus warning to allow usage of -Werror. If more issues like this
50 # pop up, we'll drop -Werror.
51 if COND_WNO_UNINITIALIZED
52 AM_CFLAGS += -Wno-uninitialized
53 endif
54 endif