From: David van Moolenbroek Date: Mon, 6 Jul 2015 11:57:19 +0000 (+0200) Subject: audio: use standard Makefile structure X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F3045%2F1;p=minix.git audio: use standard Makefile structure The previous approach of including libraries through the parent directory's Makefile.inc created linking issues, with libchardriver not finding snprintf in certain cases. The new approach of including libraries through the driver's only Makefile is the one used by all other drivers. Change-Id: I96e6308e12e54f0fce8ecf58bd061269860d4355 --- diff --git a/minix/drivers/audio/Makefile.inc b/minix/drivers/audio/Makefile.inc index d32baf393..01b5f2341 100644 --- a/minix/drivers/audio/Makefile.inc +++ b/minix/drivers/audio/Makefile.inc @@ -1,7 +1 @@ -BINDIR?= /service -MAN?= - -DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS} -LDADD+= -laudiodriver -lchardriver -lsys - .include "../Makefile.inc" diff --git a/minix/drivers/audio/README b/minix/drivers/audio/README index f8031831e..ee1b90223 100644 --- a/minix/drivers/audio/README +++ b/minix/drivers/audio/README @@ -1,11 +1,8 @@ ***** Minix 3 Audio drivers ***** Directories: -common/ Generic driver framework es1370/ ES1370 driver es1371/ ES1371 driver - -Needs updating: sb16/ SB16 ISA driver Running the drivers: diff --git a/minix/drivers/audio/es1370/Makefile b/minix/drivers/audio/es1370/Makefile index 0fe5b1338..86e89f645 100644 --- a/minix/drivers/audio/es1370/Makefile +++ b/minix/drivers/audio/es1370/Makefile @@ -1,5 +1,8 @@ -# Makefile for the ES1371 sounddriver (SB16) +# Makefile for the ES1370 sounddriver PROG= es1370 SRCS= es1370.c ak4531.c pci_helper.c +DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS} +LDADD+= -laudiodriver -lchardriver -lsys + .include diff --git a/minix/drivers/audio/es1371/Makefile b/minix/drivers/audio/es1371/Makefile index c8b56e605..f7608ad75 100644 --- a/minix/drivers/audio/es1371/Makefile +++ b/minix/drivers/audio/es1371/Makefile @@ -1,5 +1,8 @@ -# Makefile for the ES1371 sounddriver (SB16) +# Makefile for the ES1371 sounddriver PROG= es1371 SRCS= es1371.c AC97.c pci_helper.c wait.c sample_rate_converter.c +DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS} +LDADD+= -laudiodriver -lchardriver -lsys + .include diff --git a/minix/drivers/audio/sb16/Makefile b/minix/drivers/audio/sb16/Makefile index 8e3b89d02..ca31704ce 100644 --- a/minix/drivers/audio/sb16/Makefile +++ b/minix/drivers/audio/sb16/Makefile @@ -2,4 +2,7 @@ PROG= sb16 SRCS= sb16.c mixer.c +DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS} +LDADD+= -laudiodriver -lchardriver -lsys + .include