X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/0db2e8f1a55ff385e5fea5f218b77f39374bd427..e58493762dbd70870b7bdc1fd9fc922485c91c2c:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 9c16381..cd7d373 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,7 @@ # This is free software: you are free to do what the fuck you want to. # There is NO WARRANTY, to the extent permitted by law. +AUTOMAKE_OPTIONS = parallel-tests color-tests ACLOCAL_AMFLAGS = -I m4 -I common/m4 EXTRA_DIST = m4/gnulib-cache.m4 @@ -25,28 +26,48 @@ lib_LTLIBRARIES = liblbx.la liblbx_la_SOURCES = src/lbx.c src/fops.c src/image.c src/pack.c src/error.c liblbx_la_LDFLAGS = -export-symbols-regex '^lbx_' -bin_PROGRAMS = lbxtool -if BUILD_LBXIMG -bin_PROGRAMS += lbximg -endif +bin_PROGRAMS = lbxtool lbximg if BUILD_LBXGUI bin_PROGRAMS += lbxgui endif -lbxtool_SOURCES = src/lbxtool.c +lbxtool_SOURCES = src/lbxtool.c src/tools.c lbxtool_LDADD = liblbx.la libgnu.la $(lbxtool_OBJECTS): $(gnulib_headers) -lbximg_SOURCES = src/lbximg.c +lbximg_SOURCES = src/lbximg.c src/tools.c src/pnm.c lbximg_LDADD = liblbx.la libgnu.la $(LIBPNG_LIBS) $(lbximg_OBJECTS): $(gnulib_headers) +if HAVE_LIBPNG +lbximg_SOURCES += src/png.c +endif + nodist_lbxgui_SOURCES = src/gui/lbxgui.glade.c -lbxgui_SOURCES = src/gui/lbxgui.c src/gui/render.c src/gui/render.h \ +lbxgui_SOURCES = src/gui/lbxgui.c src/gui/lbxgui.h src/gui/image.c \ src/gui/bg.xbm lbxgui_LDFLAGS = $(AM_LDFLAGS) -export-dynamic lbxgui_LDADD = liblbx.la $(GTK_LIBS) +TEST_EXTENSIONS = .tap + +TAP_LOG_COMPILER = $(SHELL) +TAP_LOG_DRIVER = AM_TAP_AWK='$(AWK)' \ + $(SHELL) $(srcdir)/tests/util/tap-driver.sh + +TESTS = tests/empty-image.tap tests/pam-formats.tap tests/moo2-mainmenu.tap \ + tests/moo2-logo.tap tests/moo2-starbg.tap tests/moo2-ships.tap \ + tests/moo2-monster.tap + +mostlyclean-local: clean-testdirs +clean-testdirs: + for dir in $(TESTS:.tap=.dir); do \ + case $$dir in \ + *.dir) rm -rf "$$dir" ;; \ + esac; \ + done +.PHONY: clean-testdirs + .xml.c: $(AM_V_GEN) printf '%s\n' $(*F) | sed -e 's/[^[:alnum:]]/_/g' \ -e 's/.*/const char &[] =/' > $@.tmp