[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.
This commit is contained in:
Emmanuele Bassi 2009-07-21 14:11:28 +01:00
parent ed005685c9
commit ea436a20b3

View File

@ -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)