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