d3b29d4b61f1549244a7509b798be6f806cf7d4eTimo Sirainennoinst_LTLIBRARIES = libcharset.la
d8e43743157d05e416eb5d3b45cddb3b3122dc07Timo Sirainen
5355df8b66da35698449a10c2c83633a64995298Timo SirainenAM_CPPFLAGS = \
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen -I$(top_srcdir)/src/lib \
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen -I$(top_srcdir)/src/lib-test
d8e43743157d05e416eb5d3b45cddb3b3122dc07Timo Sirainen
11e8e38b5a10618cc1d9ff1169cb9b94fbcad253Timo Sirainenlibcharset_la_LIBADD = $(LTLIBICONV)
d3b29d4b61f1549244a7509b798be6f806cf7d4eTimo Sirainenlibcharset_la_SOURCES = \
056f3e5ec6d9379e121bf1a5188afe39b9f54434Timo Sirainen charset-iconv.c \
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen charset-utf8.c \
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen charset-utf8-only.c
d8e43743157d05e416eb5d3b45cddb3b3122dc07Timo Sirainen
bbe42963032af89fac1318844da08c742525cc87Timo Sirainenheaders = \
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen charset-utf8.h \
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen charset-utf8-private.h
bbe42963032af89fac1318844da08c742525cc87Timo Sirainen
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainenpkginc_libdir=$(pkgincludedir)
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainenpkginc_lib_HEADERS = $(headers)
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainentest_programs = \
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen test-charset
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainennoinst_PROGRAMS = $(test_programs)
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainentest_libs = \
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen ../lib-test/libtest.la \
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen ../lib/liblib.la
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainentest_deps = $(noinst_LTLIBRARIES) $(test_libs)
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainentest_charset_SOURCES = test-charset.c
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainentest_charset_LDADD = libcharset.la $(test_libs)
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainentest_charset_DEPENDENCIES = libcharset.la $(test_deps)
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainencheck-local:
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen for bin in $(test_programs); do \
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
9366765479f32a4df248d015c595d0f46cbf83b7Timo Sirainen done