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
-BINDIR?= /service
-MAN?=
-
-DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS}
-LDADD+= -laudiodriver -lchardriver -lsys
-
.include "../Makefile.inc"
***** Minix 3 Audio drivers *****
Directories:
-common/ Generic driver framework
es1370/ ES1370 driver
es1371/ ES1371 driver
-
-Needs updating:
sb16/ SB16 ISA driver
Running the drivers:
-# 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 <minix.service.mk>
-# 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 <minix.service.mk>
PROG= sb16
SRCS= sb16.c mixer.c
+DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS}
+LDADD+= -laudiodriver -lchardriver -lsys
+
.include <minix.service.mk>