new base libaudiodriver out of -lcommon in drivers/audio.

- this lets the drivers that used that library be compiled easily with
   different compilers.
This commit is contained in:
Ben Gras 2010-08-25 11:03:53 +00:00
parent cb86231930
commit 0f4eda33eb
12 changed files with 11 additions and 17 deletions

View file

@ -2,6 +2,6 @@
.include <bsd.own.mk>
SUBDIR= common .WAIT es1370 es1371 sb16
SUBDIR= .WAIT es1370 es1371 sb16
.include <bsd.subdir.mk>

View file

@ -1,12 +1,7 @@
.include <bsd.own.mk>
LIBCOMMON != cd ${.CURDIR}/../common && ${PRINTOBJDIR}
CPPFLAGS+=-I${.CURDIR}/../common
DPADD+= ${LIBCOMMON}/libcommon.a
LDADD+= -L${LIBCOMMON} -lcommon
DPADD+= ${LIBDRIVER} ${LIBSYS}
LDADD+= -ldriver -lsys
DPADD+= ${LIBAUDIODRIVER} ${LIBDRIVER} ${LIBSYS}
LDADD+= -laudiodriver -ldriver -lsys
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"

View file

@ -17,7 +17,7 @@
#include <machine/pci.h>
#include "audio_fw.h"
#include <minix/audio_fw.h>
#include "es1370.h"
#include "ak4531.h"
#include "pci_helper.h"

View file

@ -22,7 +22,7 @@
#include <machine/pci.h>
#include "audio_fw.h"
#include <minix/audio_fw.h>
#include "es1371.h"
#include "AC97.h"
#include "sample_rate_converter.h"

View file

@ -2,7 +2,7 @@
#define ES1371_H
/* best viewed with tabsize=4 */
#include "audio_fw.h"
#include <minix/audio_fw.h>
#include <sys/types.h>
#include <sys/ioc_sound.h>
#include <minix/sound.h>

View file

@ -2,7 +2,7 @@
#define SB16_H
#include <minix/sound.h>
#include "audio_fw.h"
#include <minix/audio_fw.h>
#define AUDIO 0
#define MIXER 1

View file

@ -25,7 +25,8 @@ INCS+= minix/a.out.h minix/bitmap.h minix/callnr.h minix/cdrom.h \
minix/spin.h minix/sys_config.h minix/sysinfo.h minix/syslib.h \
minix/sysutil.h minix/timers.h minix/tty.h minix/type.h minix/types.h \
minix/u64.h minix/vfsif.h minix/vm.h minix/vtreefs.h \
minix/compiler.h minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.h
minix/compiler.h minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.h \
minix/audio_fw.h
INCS+= net/hton.h net/if.h net/ioctl.h net/netlib.h
INCS+= net/gen/arp_io.h net/gen/dhcp.h net/gen/ether.h \
net/gen/eth_hdr.h net/gen/eth_io.h net/gen/icmp.h \

View file

@ -1,8 +1,6 @@
# Makefile for the common audio framework
LIBISPRIVATE= yes
LIB= common
LIB= audiodriver
SRCS= audio_fw.c liveupdate.c
.include <bsd.lib.mk>

View file

@ -56,7 +56,7 @@ MKDEP_SUFFIXES?= .o .ln
# rumpfs_lfs rumpfs_msdosfs rumpfs_nfs rumpfs_ntfs rumpfs_syspuffs \
# rumpfs_tmpfs rumpfs_udf rumpfs_ufs
.for _lib in \
c curses driver netdriver edit end m sys timers util bz2 l hgfs
c curses driver netdriver edit end m sys timers util bz2 l hgfs audiodriver
.ifndef LIB${_lib:tu}
LIB${_lib:tu}= ${DESTDIR}/usr/lib/lib${_lib}.a
.if ${COMPILER_TYPE} == "ack"