2 # Asterisk -- A telephony toolkit for Linux.
4 # Makefile for Channel backends (dynamically loaded)
6 # Copyright (C) 1999, Mark Spencer
8 # Mark Spencer <markster@linux-support.net>
10 # This program is free software, distributed under the terms of
11 # the GNU General Public License
14 CHANNEL_LIBS=chan_vofr.so chan_modem.so \
15 chan_modem_aopen.so chan_iax.so chan_oss.so \
18 CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/ixjuser.h ] && echo chan_phone.so)
20 CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
21 CFLAGS+=$(shell [ ! -f /usr/include/linux/if_wanpipe.h ] && echo " -DOLD_SANGOMA_API")
26 CHANNEL_LIBS+=$(shell [ -f $(ZAPDIR)/libzap.a ] && echo "chan_tor.so")
28 CFLAGS+=$(shell [ -f $(ZAPDIR)/libzap.a ] && echo "-I$(ZAPDIR)")
36 $(CC) -shared -Xlinker -x -o $@ $<
40 # $(AR) cr libiax.a libiax.o
42 chan_tor.so: chan_tor.o
43 $(CC) -shared -Xlinker -x -o $@ $< -lzap -ltonezone
45 #chan_modem.so : chan_modem.o
46 # $(CC) -rdynamic -shared -Xlinker -x -o $@ $<
49 for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done