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
This commit is contained in:
David van Moolenbroek 2015-07-06 13:57:19 +02:00
parent 989398b447
commit 8731fd1c47
5 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1 @@
BINDIR?= /service
MAN?=
DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -laudiodriver -lchardriver -lsys
.include "../Makefile.inc" .include "../Makefile.inc"

View file

@ -1,11 +1,8 @@
***** Minix 3 Audio drivers ***** ***** Minix 3 Audio drivers *****
Directories: Directories:
common/ Generic driver framework
es1370/ ES1370 driver es1370/ ES1370 driver
es1371/ ES1371 driver es1371/ ES1371 driver
Needs updating:
sb16/ SB16 ISA driver sb16/ SB16 ISA driver
Running the drivers: Running the drivers:

View file

@ -1,5 +1,8 @@
# Makefile for the ES1371 sounddriver (SB16) # Makefile for the ES1370 sounddriver
PROG= es1370 PROG= es1370
SRCS= es1370.c ak4531.c pci_helper.c SRCS= es1370.c ak4531.c pci_helper.c
DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -laudiodriver -lchardriver -lsys
.include <minix.service.mk> .include <minix.service.mk>

View file

@ -1,5 +1,8 @@
# Makefile for the ES1371 sounddriver (SB16) # Makefile for the ES1371 sounddriver
PROG= es1371 PROG= es1371
SRCS= es1371.c AC97.c pci_helper.c wait.c sample_rate_converter.c SRCS= es1371.c AC97.c pci_helper.c wait.c sample_rate_converter.c
DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -laudiodriver -lchardriver -lsys
.include <minix.service.mk> .include <minix.service.mk>

View file

@ -2,4 +2,7 @@
PROG= sb16 PROG= sb16
SRCS= sb16.c mixer.c SRCS= sb16.c mixer.c
DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -laudiodriver -lchardriver -lsys
.include <minix.service.mk> .include <minix.service.mk>