From fbfe926fc482a1e48501310c53c95118255da0bc Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 19 Oct 2011 22:12:45 +0200 Subject: Makefile.am: Use variables rather then substitutions Also set preprocessor flags in AM_CPPFLAGS --- configure.ac | 1 - src/Makefile.am | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 5c011e2..4d51963 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,6 @@ if test "x$GCC" = "xyes"; then fi AC_SUBST(GCC_CFLAGS) - AC_SUBST(CURSES_LIBS) AC_CHECK_HEADERS([ncurses.h sys/ioctl.h unistd.h signal.h]) diff --git a/src/Makefile.am b/src/Makefile.am index c73f0d7..78e47d7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,8 @@ bin_PROGRAMS = pa-sink-ctl pa_sink_ctl_SOURCES = interface.c pa-sink-ctl.c sink.c sink_input.c g_unix_signal.c g_curses_input.c -AM_CFLAGS = $(GCC_CFLAGS) @PULSE_CFLAGS@ @PULSE_MAINLOOP_CFLAGS@ @GLIB_CFLAGS@ -pa_sink_ctl_LDADD = @GLIB_LIBS@ @PULSE_LIBS@ @PULSE_MAINLOOP_LIBS@ @CURSES_LIBS@ +AM_CFLAGS = $(GCC_CFLAGS) +AM_CPPFLAGS = $(PULSE_CFLAGS) $(PULSE_MAINLOOP_CFLAGS) $(GLIB_CFLAGS) +pa_sink_ctl_LDADD = $(GLIB_LIBS) $(PULSE_LIBS) $(PULSE_MAINLOOP_LIBS) $(CURSES_LIBS) noinst_HEADERS = interface.h pa-sink-ctl.h sink.h sink_input.h g_unix_signal.h g_curses_input.h -- cgit