]> Zhao Yanbai Git Server - minix.git/commitdiff
new base libaudiodriver out of -lcommon in drivers/audio.
authorBen Gras <ben@minix3.org>
Wed, 25 Aug 2010 11:03:53 +0000 (11:03 +0000)
committerBen Gras <ben@minix3.org>
Wed, 25 Aug 2010 11:03:53 +0000 (11:03 +0000)
 - this lets the drivers that used that library be compiled easily with
   different compilers.

12 files changed:
drivers/audio/Makefile
drivers/audio/Makefile.inc
drivers/audio/es1370/es1370.c
drivers/audio/es1371/es1371.c
drivers/audio/es1371/es1371.h
drivers/audio/sb16/sb16.h
include/Makefile
include/minix/audio_fw.h [moved from drivers/audio/common/audio_fw.h with 100% similarity]
lib/libaudiodriver/Makefile [moved from drivers/audio/common/Makefile with 73% similarity]
lib/libaudiodriver/audio_fw.c [moved from drivers/audio/common/audio_fw.c with 100% similarity]
lib/libaudiodriver/liveupdate.c [moved from drivers/audio/common/liveupdate.c with 100% similarity]
share/mk/bsd.prog.mk

index 77114cd87408fbc4d2fe233f4fd2ef0f95e50091..7dcffe42ed8ed0f6fac10e1acb256db5107efa31 100644 (file)
@@ -2,6 +2,6 @@
 
 .include <bsd.own.mk>
 
-SUBDIR=        common .WAIT es1370 es1371 sb16
+SUBDIR= .WAIT es1370 es1371 sb16
 
 .include <bsd.subdir.mk>
index 2da84390981af2c6c0f6eb501135e148c38824ba..85ebc1bb653becd8ac5b70ba89355ab41631fbce 100644 (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"
index 52020f129e1c00a6c2b5fe7924ec66d4646f89f1..8dc6a5f35e4b63f0982ff7eb27ecaa1ba0d091aa 100644 (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"
index 500bb74c6c0d882e508778d28323dd5a9b5f4466..deaad91619a3d10b0db8445c125e7184955372ea 100644 (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"
index 1e3743973f5faf86940da621fdf113624c702d8b..e95ddf21622746fd794224fa831b8c170ba1816e 100644 (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>
index 38b1843902ccd30a78fd40ee56911b694c275154..7adbbc5a50cf68e6f5a0679eab21bc68ed367b6c 100644 (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
index b68984311c77f611887a0862f77db8684d9dc30f..a75437ea8b9d137b1921eb99cc8ef61e739d7828 100644 (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 \
similarity index 73%
rename from drivers/audio/common/Makefile
rename to lib/libaudiodriver/Makefile
index cc347102804ea39fa1202ba3b7da2f4967cc3b72..3466d2cb336cf52402811586574744dc326f654b 100644 (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>
index 4071791932cfadda10f0ff096f3179d45ef0864f..04f8eecca0271be96e372ff380ed3d526bea9bf1 100644 (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"