1999-12-01 05:25:44 +00:00
|
|
|
#
|
2012-10-14 21:47:40 +00:00
|
|
|
# Asterisk -- An open source telephony toolkit.
|
2013-07-23 15:59:32 +00:00
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
# Makefile for channel drivers
|
1999-12-01 05:25:44 +00:00
|
|
|
#
|
2006-02-11 17:58:21 +00:00
|
|
|
# Copyright (C) 1999-2006, Digium, Inc.
|
1999-12-01 05:25:44 +00:00
|
|
|
#
|
|
|
|
# This program is free software, distributed under the terms of
|
|
|
|
# the GNU General Public License
|
|
|
|
#
|
2005-06-20 17:26:08 +00:00
|
|
|
|
2007-12-09 21:29:37 +00:00
|
|
|
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
|
2006-06-07 16:03:31 +00:00
|
|
|
|
2007-12-17 07:25:35 +00:00
|
|
|
MODULE_PREFIX=chan
|
|
|
|
MENUSELECT_CATEGORY=CHANNELS
|
|
|
|
MENUSELECT_DESCRIPTION=Channel Drivers
|
2005-11-01 21:53:30 +00:00
|
|
|
|
2006-06-24 19:43:31 +00:00
|
|
|
all: _all
|
1999-12-01 05:25:44 +00:00
|
|
|
|
2006-07-06 21:04:28 +00:00
|
|
|
include $(ASTTOPDIR)/Makefile.moddir_rules
|
2006-02-12 16:52:42 +00:00
|
|
|
|
2007-11-20 16:12:10 +00:00
|
|
|
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
|
2015-02-26 04:58:19 +00:00
|
|
|
LIBS+= -lres_monitor.so
|
2007-11-20 16:12:10 +00:00
|
|
|
endif
|
|
|
|
|
2006-09-20 16:33:42 +00:00
|
|
|
clean::
|
2009-03-29 05:32:04 +00:00
|
|
|
$(MAKE) -C misdn clean
|
2013-08-26 16:15:02 +00:00
|
|
|
rm -f dahdi/*.o dahdi/*.i
|
2010-02-24 22:44:55 +00:00
|
|
|
rm -f sip/*.o sip/*.i
|
2013-01-29 22:58:33 +00:00
|
|
|
rm -f iax2/*.o iax2/*.i
|
2013-12-13 05:00:53 +00:00
|
|
|
rm -f pjsip/*.o pjsip/*.i
|
2007-10-01 21:54:41 +00:00
|
|
|
|
2013-01-29 22:58:33 +00:00
|
|
|
$(if $(filter chan_iax2,$(EMBEDDED_MODS)),modules.link,chan_iax2.so): $(subst .c,.o,$(wildcard iax2/*.c))
|
|
|
|
$(subst .c,.o,$(wildcard iax2/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,chan_iax2)
|
2013-07-23 15:59:32 +00:00
|
|
|
|
2010-02-17 06:25:15 +00:00
|
|
|
$(if $(filter chan_sip,$(EMBEDDED_MODS)),modules.link,chan_sip.so): $(subst .c,.o,$(wildcard sip/*.c))
|
2010-03-23 14:22:27 +00:00
|
|
|
$(subst .c,.o,$(wildcard sip/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,chan_sip)
|
2013-07-23 15:59:32 +00:00
|
|
|
|
2013-12-11 13:06:30 +00:00
|
|
|
$(if $(filter chan_pjsip,$(EMBEDDED_MODS)),modules.link,chan_pjsip.so): $(subst .c,.o,$(wildcard pjsip/*.c))
|
|
|
|
$(subst .c,.o,$(wildcard pjsip/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,chan_pjsip)
|
|
|
|
|
2013-07-23 15:59:32 +00:00
|
|
|
# Additional objects to combine with chan_dahdi.so
|
|
|
|
CHAN_DAHDI_OBJS= \
|
|
|
|
$(subst .c,.o,$(wildcard dahdi/*.c)) \
|
|
|
|
sig_analog.o \
|
|
|
|
sig_pri.o \
|
|
|
|
sig_ss7.o \
|
|
|
|
|
|
|
|
$(if $(filter chan_dahdi,$(EMBEDDED_MODS)),modules.link,chan_dahdi.so): $(CHAN_DAHDI_OBJS)
|
|
|
|
$(CHAN_DAHDI_OBJS): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,chan_dahdi)
|
2002-02-16 19:23:59 +00:00
|
|
|
|
2009-07-21 13:28:04 +00:00
|
|
|
chan_misdn.o: _ASTCFLAGS+=-Imisdn
|
2006-07-06 23:18:45 +00:00
|
|
|
|
2009-07-21 13:28:04 +00:00
|
|
|
misdn_config.o: _ASTCFLAGS+=-Imisdn
|
2006-12-19 21:28:43 +00:00
|
|
|
|
2009-07-21 13:28:04 +00:00
|
|
|
misdn/isdn_lib.o: _ASTCFLAGS+=-Wno-strict-aliasing
|
2006-07-06 23:18:45 +00:00
|
|
|
|
2008-01-02 14:53:26 +00:00
|
|
|
$(if $(filter chan_misdn,$(EMBEDDED_MODS)),modules.link,chan_misdn.so): misdn_config.o misdn/isdn_lib.o misdn/isdn_msg_parser.o
|
2010-03-23 14:22:27 +00:00
|
|
|
misdn_config.o misdn/isdn_lib.o misdn/isdn_msg_parser.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,chan_misdn)
|
2007-07-05 15:29:24 +00:00
|
|
|
|
2008-01-08 23:09:44 +00:00
|
|
|
$(if $(filter chan_oss,$(EMBEDDED_MODS)),modules.link,chan_oss.so): console_video.o vgrabbers.o console_board.o
|
2010-03-23 14:22:27 +00:00
|
|
|
console_video.o vgrabbers.o console_board.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,chan_oss)
|
2008-05-16 00:51:14 +00:00
|
|
|
|
|
|
|
chan_usbradio.o: ./xpmr/xpmr.c ./xpmr/xpmr.h ./xpmr/xpmr_coef.h
|
|
|
|
|
|
|
|
chan_usbradio.so: LIBS+=-lusb -lasound
|
2009-07-21 13:28:04 +00:00
|
|
|
chan_usbradio.so: _ASTCFLAGS+=-DNDEBUG
|
2008-05-16 00:51:14 +00:00
|
|
|
|