]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/check/Makefile.am
Imported to git.
[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         check_init.c \
17         check_byteswap.h \
18         crc_macros.h
19 libcheck_la_CPPFLAGS = \
20         -I@top_srcdir@/src/liblzma/api \
21         -I@top_srcdir@/src/liblzma/common
22
23 if COND_CHECK_CRC32
24
25 if COND_ASM_X86
26 libcheck_la_SOURCES += crc32_x86.s
27 else
28 libcheck_la_SOURCES += crc32.c
29 endif
30
31 if COND_SMALL
32 libcheck_la_SOURCES += crc32_init.c
33 else
34 libcheck_la_SOURCES += crc32_table.c crc32_table_le.h crc32_table_be.h
35 endif
36
37 endif
38
39
40 if COND_CHECK_CRC64
41
42 if COND_ASM_X86
43 libcheck_la_SOURCES += crc64_x86.s
44 else
45 libcheck_la_SOURCES += crc64.c
46 endif
47
48 if COND_SMALL
49 libcheck_la_SOURCES += crc64_init.c
50 else
51 libcheck_la_SOURCES += crc64_table.c crc64_table_le.h crc64_table_be.h
52 endif
53
54 endif
55
56
57 if COND_CHECK_SHA256
58 libcheck_la_SOURCES += sha256.c
59 # Hide bogus warning to allow usage of -Werror. If more issues like this
60 # pop up, we'll drop -Werror.
61 if COND_WNO_UNINITIALIZED
62 CFLAGS += -Wno-uninitialized
63 endif
64 endif