1ACLOCAL_AMFLAGS = -I m4
2
3if ENABLE_RUNTIME_LINKING
4AM_CPPFLAGS = -DENABLE_RUNTIME_LINKING
5endif
6
7if ENABLE_TOOLS
8bin_PROGRAMS = s2tc_compress s2tc_decompress s2tc_from_s3tc
9s2tc_from_s3tc_SOURCES = s2tc_from_s3tc.cpp s2tc_license.h
10s2tc_compress_SOURCES = s2tc_compress.c txc_dxtn.h s2tc_license.h
11s2tc_decompress_SOURCES = s2tc_decompress.c txc_dxtn.h s2tc_license.h
12man1_MANS = s2tc_compress.1 s2tc_decompress.1 s2tc_from_s3tc.1
13if ENABLE_RUNTIME_LINKING
14s2tc_compress_LDADD = $(LIBDL_LDADD)
15s2tc_decompress_LDADD = $(LIBDL_LDADD)
16else
17if ENABLE_LIB
18s2tc_compress_LDADD = libtxc_dxtn.la
19s2tc_decompress_LDADD = libtxc_dxtn.la
20else
21s2tc_compress_LDADD = -ltxc_dxtn
22s2tc_decompress_LDADD = -ltxc_dxtn
23endif
24endif
25endif
26
27if ENABLE_LIB
28lib_LTLIBRARIES = libtxc_dxtn.la
29libtxc_dxtn_la_SOURCES = s2tc_algorithm.cpp s2tc_libtxc_dxtn.cpp s2tc_common.h s2tc_algorithm.h txc_dxtn.h s2tc_license.h
30libtxc_dxtn_la_LDFLAGS = -avoid-version -nodefaultlibs
31libtxc_dxtn_la_LIBADD = -lm
32libtxc_dxtn_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
33library_includedir = $(includedir)
34library_include_HEADERS = txc_dxtn.h
35pkgconfigdir = $(prefix)/libdata/pkgconfig
36pkgconfig_HEADERS = txc_dxtn.pc
37endif
38
39EXTRA_DIST = README.txt autogen.sh
40