[alsa-devel] [PATCH] alsa-utils: Allow building in subdirectory.

Thierry Reding thierry.reding at avionic-design.de
Wed Jul 7 15:54:20 CEST 2010


This patch allows building alsa-utils in a separate subdirectory.

Signed-off-by: Thierry Reding <thierry.reding at avionic-design.de>
---
 alsactl/Makefile.am   |    2 ++
 alsamixer/Makefile.am |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am
index 359f73a..945a54c 100644
--- a/alsactl/Makefile.am
+++ b/alsactl/Makefile.am
@@ -1,5 +1,7 @@
 SUBDIRS = init
 
+INCLUDES = -I$(top_srcdir)/include
+
 sbin_PROGRAMS=alsactl
 man_MANS=alsactl.1
 if USE_XMLTO
diff --git a/alsamixer/Makefile.am b/alsamixer/Makefile.am
index 1de47c6..d01b1e4 100644
--- a/alsamixer/Makefile.am
+++ b/alsamixer/Makefile.am
@@ -1,4 +1,5 @@
 AM_CFLAGS = @CURSES_CFLAGS@ -DCURSESINC="@CURSESINC@"
+INCLUDES = -I$(top_srcdir)/include
 LDADD = @CURSESLIB@
 
 bin_PROGRAMS = alsamixer
@@ -18,7 +19,6 @@ alsamixer_SOURCES = card_select.c card_select.h \
 		widget.c widget.h
 man_MANS = alsamixer.1
 EXTRA_DIST = alsamixer.1
-alsamixer_INCLUDES = -I$(top_srcdir)/include
 
 #LDFLAGS = -static
 #CFLAGS += -g -Wall
-- 
1.7.1



More information about the Alsa-devel mailing list