]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/check/Makefile.am
Put the interesting parts of XZ Utils into the public domain.
[icculus/xz.git] / src / liblzma / check / Makefile.am
1 ##
2 ## Author: Lasse Collin
3 ##
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
6 ##
7
8 EXTRA_DIST = crc32_tablegen.c crc64_tablegen.c
9
10 noinst_LTLIBRARIES = libcheck.la
11 libcheck_la_SOURCES = \
12         check.c \
13         check.h \
14         crc_macros.h
15 libcheck_la_CPPFLAGS = \
16         -I@top_srcdir@/src/liblzma/api \
17         -I@top_srcdir@/src/liblzma/common
18
19 if COND_CHECK_CRC32
20 if COND_SMALL
21 libcheck_la_SOURCES += crc32_small.c
22 else
23 libcheck_la_SOURCES += crc32_table.c crc32_table_le.h crc32_table_be.h
24 if COND_ASM_X86
25 libcheck_la_SOURCES += crc32_x86.S
26 else
27 libcheck_la_SOURCES += crc32_fast.c
28 endif
29 endif
30 endif
31
32 if COND_CHECK_CRC64
33 if COND_SMALL
34 libcheck_la_SOURCES += crc64_small.c
35 else
36 libcheck_la_SOURCES += crc64_table.c crc64_table_le.h crc64_table_be.h
37 if COND_ASM_X86
38 libcheck_la_SOURCES += crc64_x86.S
39 else
40 libcheck_la_SOURCES += crc64_fast.c
41 endif
42 endif
43 endif
44
45 if COND_CHECK_SHA256
46 libcheck_la_SOURCES += sha256.c
47 # Hide bogus warning to allow usage of -Werror. If more issues like this
48 # pop up, we'll drop -Werror.
49 if COND_WNO_UNINITIALIZED
50 AM_CFLAGS += -Wno-uninitialized
51 endif
52 endif