X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/73121d6a9327147a3e2b706f0dd10e2e8cd6800f..f6779008e58e8d3158555dca574e7bbdb15a55dd:/Makefile.am diff --git a/Makefile.am b/Makefile.am index d6d99b0..da9a395 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,6 @@ # 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 MAINTAINERCLEANFILES = MOSTLYCLEANFILES = @@ -32,10 +31,6 @@ include_HEADERS = dist_man_MANS = doc/man/upkg.1 -# This trick should define orderonly to | iff we're using GNU make. -have_orderonly = $(findstring order-only,$(.FEATURES)) -orderonly = $(have_orderonly:order-only=|) - upkg_SOURCES = src/upkg.c src/upkg.h src/upkgopts.h \ common/src/help.c common/src/help.h upkg_LDFLAGS = $(AM_LDFLAGS) -export-dynamic @@ -43,6 +38,7 @@ upkg_LDADD = libuobject.la libupkg.la libgnu.la $(GLIB_LIBS) $(upkg_OBJECTS): $(gnulib_headers) src/upkgopts.h libupkg_la_SOURCES = src/libupkg.c common/src/pack.c common/src/pack.h +$(libupkg_la_OBJECTS): $(gnulib_headers) uobjectdir = $(includedir)/uobject uobject_HEADERS = src/uobject/uobject.h src/uobject/exportable.h \ @@ -76,7 +72,7 @@ engine_la_SOURCES = $(engine_GOBS:.gob=.c) $(engine_GOBS:.gob=.h) \ src/engine/pcx.h engine_la_LDFLAGS = $(AM_LDFLAGS) $(moduleflags) engine_la_LIBADD = $(GLIB_LIBS) -$(engine_la_OBJECTS): $(orderonly) $(engine_GOBS:.gob=.gobstamp) +$(engine_la_OBJECTS): $(gnulib_headers) $(engine_GOBS:.gob=.gobstamp) if USE_DUMMYMOD engine_la_SOURCES += src/engine/music-dummymod.c @@ -87,23 +83,19 @@ engine_la_SOURCES += src/engine/music-modplug.c src/engine/modplug-types.h engine_la_LIBADD += $(LIBMODPLUG_LIBS) endif -check_LTLIBRARIES = libtest.la check_PROGRAMS = test/decodeindex test/pcxrle +check_LIBRARIES = libtest.a + +libtest_a_SOURCES = test/common.c test/common.h +$(libtest_a_OBJECTS): $(gnulib_headers) -libtest_la_SOURCES = test/common.c test/common.h +TEST_LIBS = libtest.a libgnu.la -test_decodeindex_LDADD = libupkg.la libgnu.la libtest.la +test_decodeindex_LDADD = libupkg.la $(TEST_LIBS) $(test_decodeindex_OBJECTS): $(gnulib_headers) -test_pcxrle_LDADD = src/engine/pcx.lo libupkg.la libgnu.la libtest.la +test_pcxrle_LDADD = src/engine/pcx.lo libupkg.la $(TEST_LIBS) $(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/engine-pcx-rlencode.sh -EXTRA_DIST += $(TESTS) - # Supporting rules for GObject Builder GOB_V = $(GOB_V_@AM_V@) GOB_V_ = $(GOB_V_@AM_DEFAULT_V@) @@ -171,3 +163,4 @@ unfuck-distdir: include $(top_srcdir)/lib/gnulib.mk include $(top_srcdir)/libltdl/ltdl.mk +include $(top_srcdir)/common/snippet/autotest.mk