~lhw/ubuntu/precise/s2tc/multiarch-fix

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ACLOCAL_AMFLAGS = -I m4

if ENABLE_RUNTIME_LINKING
AM_CPPFLAGS = -DENABLE_RUNTIME_LINKING
endif

if ENABLE_TOOLS
bin_PROGRAMS = s2tc_compress s2tc_decompress s2tc_from_s3tc
s2tc_from_s3tc_SOURCES = s2tc_from_s3tc.cpp s2tc_license.h
s2tc_compress_SOURCES = s2tc_compress.cpp txc_dxtn.h s2tc_license.h
s2tc_decompress_SOURCES = s2tc_decompress.cpp txc_dxtn.h s2tc_license.h
if ENABLE_RUNTIME_LINKING
s2tc_compress_LDADD = -ldl
s2tc_decompress_LDADD = -ldl
else
if ENABLE_LIB
s2tc_compress_LDADD = libtxc_dxtn_s2tc.la
s2tc_decompress_LDADD = libtxc_dxtn_s2tc.la
else
s2tc_compress_LDADD = -ltxc_dxtn_s2tc
s2tc_decompress_LDADD = -ltxc_dxtn_s2tc
endif
endif
endif

if ENABLE_LIB
lib_LTLIBRARIES = libtxc_dxtn_s2tc.la
libtxc_dxtn_s2tc_la_SOURCES = s2tc_algorithm.cpp s2tc_libtxc_dxtn.cpp s2tc_common.h s2tc_algorithm.h txc_dxtn.h s2tc_license.h
libtxc_dxtn_s2tc_la_LDFLAGS = -versioninfo 0:0:0
libtxc_dxtn_s2tc_la_LIBADD = -lm
libtxc_dxtn_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
library_includedir = $(includedir)
library_include_HEADERS = txc_dxtn.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_HEADERS = txc_dxtn.pc
endif

# versioninfo:
#   - compatible interface change: c:r:a -> c+1:0:a+1
#   - incompatible interface change: c:r:a -> c+1:0:0
#   - internal change: c:r:a -> c:r+1:a

EXTRA_DIST = README.txt autogen.sh