aboutsummaryrefslogtreecommitdiffstats
path: root/channels/Makefile
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-30 04:42:40 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-30 04:42:40 +0000
commit7eb7170d5e9d8e7a2b579a8aadda09747e1c9ee8 (patch)
tree8d018d95839824ea2cc4f4130dfb4da733baa0d2 /channels/Makefile
parent6c025c9842a5f006d297bb49683c31db91ddb3f0 (diff)
Version 0.1.8 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@306 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/Makefile')
-rwxr-xr-xchannels/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/channels/Makefile b/channels/Makefile
index c31d3df28..d1402a251 100755
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -19,6 +19,8 @@ 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")
+CFLAGS+=$(shell [ -f /usr/lib/libpri.so.1 ] && echo " -DTORMENTA_PRI")
+TORPRI=$(shell [ -f /usr/lib/libpri.so.1 ] && echo "-lpri")
CFLAGS+=#-DVOFRDUMPER
@@ -31,16 +33,24 @@ all: $(CHANNEL_LIBS)
clean:
rm -f *.so *.o
+ rm -f busy.h ringtone.h gentone
%.so : %.o
$(CC) -shared -Xlinker -x -o $@ $<
-#libiax.a: libiax.o
-# rm -f libiax.a
-# $(AR) cr libiax.a libiax.o
+gentone: gentone.c
+ $(CC) -o gentone gentone.c -lm
+
+busy.h: gentone
+ ./gentone busy 480 620
+
+ringtone.h: gentone
+ ./gentone ringtone 440 480
+
+chan_oss.o: chan_oss.c busy.h ringtone.h
chan_tor.so: chan_tor.o
- $(CC) -shared -Xlinker -x -o $@ $< -lzap -ltonezone
+ $(CC) -shared -Xlinker -x -o $@ $< $(TORPRI) -lzap -ltonezone
#chan_modem.so : chan_modem.o
# $(CC) -rdynamic -shared -Xlinker -x -o $@ $<