From ea436a20b31eef70af60beb5366e1ccad1261c4a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 21 Jul 2009 14:11:28 +0100 Subject: [PATCH] [build] Use per-target flags and libraries AM_LDFLAGS is ignored by the LDFLAGS target, and it's also not the right place to put the libraries used by the linker. Thanks to Vincent Untz for spotting this. --- tests/interactive/Makefile.am | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am index dd38df881..2d503c751 100644 --- a/tests/interactive/Makefile.am +++ b/tests/interactive/Makefile.am @@ -79,13 +79,11 @@ INCLUDES = \ -I$(top_builddir)/clutter \ -DG_DISABLE_SINGLE_INCLUDES -LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_FLAVOUR@-@CLUTTER_MAJORMINOR@.la -AM_CPPFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) -AM_LDFLAGS = $(CLUTTER_LIBS) +common_ldadd = $(top_builddir)/clutter/libclutter-@CLUTTER_FLAVOUR@-@CLUTTER_MAJORMINOR@.la noinst_PROGRAMS = test-interactive -test_interactive_SOURCES = \ - test-main.c \ - $(UNIT_TESTS) +test_interactive_SOURCES = test-main.c $(UNIT_TESTS) +test_interactive_CPPFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) test_interactive_LDFLAGS = -export-dynamic +test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd)