engine_la_LIBADD += $(LIBMODPLUG_LIBS)
endif
-check_PROGRAMS = test/decodeindex
-test_decodeindex_LDADD = libupkg.la libgnu.la
+check_LTLIBRARIES = libtest.la
+check_PROGRAMS = test/decodeindex test/pcxrle
+
+libtest_la_SOURCES = test/common.c
+
+test_decodeindex_LDADD = libupkg.la libgnu.la libtest.la
$(test_decodeindex_OBJECTS): $(gnulib_headers)
+test_pcxrle_LDADD = src/engine/pcx.lo libupkg.la libgnu.la libtest.la
+$(test_pcxrle_OBJECTS): $(gnulib_headers)
TESTS_ENVIRONMENT = SHELL='$(SHELL)' EXEEXT='$(EXEEXT)'
TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = $(SHELL)
-TESTS = tests/libupkg-index-decode.sh
+TESTS = tests/libupkg-index-decode.sh tests/engine-pcx-rlencode.sh
EXTRA_DIST += $(TESTS)
# Supporting rules for GObject Builder
.gobstamp.h: ; $(STAMP_RECOVER)
include $(top_srcdir)/lib/gnulib.mk
-if BUNDLED_LIBLTDL
include $(top_srcdir)/libltdl/ltdl.mk
-endif