glib/gio/tests/modules/Makefile.am
Matthias Clasen 2b289cc565 Fix make install with --disable-installed-tests
If installed tests are not enabled, installed_testdir is not
defined, so we end up trying to create /modules and to chmod
things in /x-content/, which is not right.
2014-01-02 13:36:37 -05:00

39 lines
944 B
Makefile

NULL =
LDADD = \
$(top_builddir)/gio/libgio-2.0.la \
$(top_builddir)/gobject/libgobject-2.0.la \
$(top_builddir)/gmodule/libgmodule-2.0.la \
$(top_builddir)/glib/libglib-2.0.la \
$(NULL)
AM_CPPFLAGS = \
$(gio_INCLUDES) $(GLIB_DEBUG_FLAGS) \
-I$(top_builddir)/gio \
-I$(top_srcdir)/gio \
$(NULL)
modules = \
libtestmodulea.la \
libtestmoduleb.la \
$(NULL)
if ENABLE_ALWAYS_BUILD_TESTS
noinst_LTLIBRARIES = $(modules)
else
check_LTLIBRARIES = $(modules)
endif
if ENABLE_INSTALLED_TESTS
testmoduledir = $(installed_testdir)/modules
testmodule_LTLIBRARIES = $(modules)
endif
libtestmodulea_la_SOURCES = test-module-a.c
libtestmodulea_la_LIBADD = $(LDADD)
libtestmodulea_la_LDFLAGS = $(LDFLAGS) -no-undefined -avoid-version
libtestmoduleb_la_SOURCES = test-module-b.c
libtestmoduleb_la_LIBADD = $(LDADD)
libtestmoduleb_la_LDFLAGS =$(LDFLAGS) -no-undefined -avoid-version