OSDN Git Service

Avoid the case c0 == c1 when encoding
[android-x86/external-s2tc.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 if ENABLE_RUNTIME_LINKING
4 AM_CPPFLAGS = -DENABLE_RUNTIME_LINKING
5 endif
6
7 if ENABLE_TOOLS
8 bin_PROGRAMS = s2tc_compress s2tc_decompress s2tc_from_s3tc
9 s2tc_from_s3tc_SOURCES = s2tc_from_s3tc.cpp s2tc_license.h
10 s2tc_compress_SOURCES = s2tc_compress.cpp txc_dxtn.h s2tc_license.h
11 s2tc_decompress_SOURCES = s2tc_decompress.cpp txc_dxtn.h s2tc_license.h
12 if ENABLE_RUNTIME_LINKING
13 s2tc_compress_LDADD = -ldl
14 s2tc_decompress_LDADD = -ldl
15 else
16 if ENABLE_LIB
17 s2tc_compress_LDADD = libtxc_dxtn.la
18 s2tc_decompress_LDADD = libtxc_dxtn.la
19 else
20 s2tc_compress_LDADD = -ltxc_dxtn
21 s2tc_decompress_LDADD = -ltxc_dxtn
22 endif
23 endif
24 endif
25
26 if ENABLE_LIB
27 lib_LTLIBRARIES = libtxc_dxtn.la
28 libtxc_dxtn_la_SOURCES = s2tc_algorithm.cpp s2tc_libtxc_dxtn.cpp s2tc_common.h s2tc_algorithm.h txc_dxtn.h s2tc_license.h
29 libtxc_dxtn_la_LDFLAGS = -versioninfo 0:0:0
30 libtxc_dxtn_la_LIBADD = -lm
31 libtxc_dxtn_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
32 library_includedir = $(includedir)
33 library_include_HEADERS = txc_dxtn.h
34 pkgconfigdir = $(libdir)/pkgconfig
35 pkgconfig_HEADERS = txc_dxtn.pc
36 endif
37
38 # versioninfo:
39 #   - compatible interface change: c:r:a -> c+1:0:a+1
40 #   - incompatible interface change: c:r:a -> c+1:0:0
41 #   - internal change: c:r:a -> c:r+1:a
42
43 EXTRA_DIST = README.txt autogen.sh