Version 0.1.11 from FTP
authorMark Spencer <markster@digium.com>
Sat, 16 Feb 2002 19:23:59 +0000 (19:23 +0000)
committerMark Spencer <markster@digium.com>
Sat, 16 Feb 2002 19:23:59 +0000 (19:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/Makefile

index 06d751e..ca91618 100755 (executable)
@@ -19,9 +19,14 @@ CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/ixjuser.h ] && echo chan_phone.so)
 
 CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
 CFLAGS+=$(shell [ ! -f /usr/include/linux/if_wanpipe.h ] && echo " -DOLD_SANGOMA_API")
+CHANNEL_LIBS+=$(shell [ -f /usr/include/alsa/asoundlib.h ] && echo "chan_alsa.so")
 CFLAGS+=$(shell [ -f /usr/lib/libpri.so.1 ] && echo " -DZAPATA_PRI")
+CFLAGS+=$(shell [ -f alsa-monitor.h ] && echo " -DALSA_MONITOR")
 ZAPPRI=$(shell [ -f /usr/lib/libpri.so.1 ] && echo "-lpri")
 
+ALSA_SRC=chan_alsa.c
+ALSA_SRC+=$(shell [ -f alsa-monitor.h ] && echo "alsa-monitor.h")
+
 CFLAGS+=-DCRYPTO
 
 CFLAGS+=#-DVOFRDUMPER
@@ -58,6 +63,11 @@ chan_oss.o: chan_oss.c  busy.h ringtone.h
 chan_zap.so: chan_zap.o
        $(CC) -shared -Xlinker -x -o $@ $<  $(ZAPPRI) -lzap -ltonezone
 
+chan_alsa.o: $(ALSA_SRC)
+
+chan_alsa.so: chan_alsa.o
+       $(CC) -shared -Xlinker -x -o $@ $< -lasound -lm -ldl
+
 #chan_modem.so : chan_modem.o
 #      $(CC) -rdynamic -shared -Xlinker -x -o $@ $<