| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # Asterisk -- A telephony toolkit for Linux.
 | 
					
						
							|  |  |  | # 
 | 
					
						
							| 
									
										
										
										
											2005-06-20 17:26:08 +00:00
										 |  |  | # Makefile for channel drivers
 | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2005-06-20 17:26:08 +00:00
										 |  |  | # Copyright (C) 1999-2005, Mark Spencer
 | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2005-06-20 17:26:08 +00:00
										 |  |  | # Mark Spencer <markster@digium.com>
 | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2004-08-31 16:33:00 +00:00
										 |  |  | # Edited By Belgarath <> Aug 28 2004
 | 
					
						
							|  |  |  | # Added bare bones ultrasparc-linux support.
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | CHANNEL_LIBS=chan_sip.so chan_agent.so chan_mgcp.so chan_iax2.so chan_local.so chan_skinny.so chan_features.so | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ifneq (${OSARCH},CYGWIN) | 
					
						
							| 
									
										
										
										
											2005-11-16 20:54:15 +00:00
										 |  |  | # if you really, really want to use these drivers, uncomment the line below
 | 
					
						
							|  |  |  | #CHANNEL_LIBS+=chan_modem.so chan_modem_aopen.so chan_modem_bestdata.so
 | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2000-01-03 17:02:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | ifeq ($(findstring BSD,${OSARCH}),BSD) | 
					
						
							|  |  |  |  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-04-19 08:11:51 +00:00
										 |  |  | ifeq (${OSARCH},OpenBSD) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   PTLIB=-lpt_OpenBSD_x86_r | 
					
						
							|  |  |  |   H323LIB=-lh323_OpenBSD_x86_r | 
					
						
							| 
									
										
										
										
											2004-07-30 18:57:37 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-30 18:57:37 +00:00
										 |  |  | ifeq (${OSARCH},Linux) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   PTLIB=-lpt_linux_x86_r | 
					
						
							|  |  |  |   H323LIB=-lh323_linux_x86_r | 
					
						
							|  |  |  |   CHANH323LIB=-ldl | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2004-08-31 16:33:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | ifeq (${OSARCH},CYGWIN) | 
					
						
							|  |  |  | CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols | 
					
						
							|  |  |  | CYGSOLIB=-L.. -L. -L../res -lasterisk.dll -lres_features.so | 
					
						
							|  |  |  | CYG_CHAN_AGENT=-lres_monitor.so | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-31 16:33:00 +00:00
										 |  |  | ifeq ($(PROC),sparc64) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   PROC=ultrasparc | 
					
						
							|  |  |  |   CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 | 
					
						
							| 
									
										
										
										
											2004-08-31 16:33:00 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-05-31 19:40:23 +00:00
										 |  |  | ifeq (${OSARCH},FreeBSD) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   PTLIB=-lpt_FreeBSD_x86_r | 
					
						
							|  |  |  |   H323LIB=-lh323_FreeBSD_x86_r | 
					
						
							|  |  |  |   CHANH323LIB=-pthread | 
					
						
							| 
									
										
										
										
											2004-08-31 13:32:11 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-31 13:32:11 +00:00
										 |  |  | ifeq (${OSARCH},NetBSD) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   PTLIB=-lpt_NetBSD_x86_r | 
					
						
							|  |  |  |   H323LIB=-lh323_NetBSD_x86_r | 
					
						
							| 
									
										
										
										
											2004-08-31 13:32:11 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-31 13:32:11 +00:00
										 |  |  | ifneq (${OSARCH},Darwin) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   ifneq (${OSARCH},SunOS) | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  |     ifneq (${OSARCH},CYGWIN) | 
					
						
							| 
									
										
										
										
											2005-11-17 16:57:25 +00:00
										 |  |  | # the ISDN4Linux channel driver is probably broken on all modern kernels,
 | 
					
						
							|  |  |  | # but if you wish to try to use it, uncomment the line below
 | 
					
						
							| 
									
										
										
										
											2005-11-20 04:54:15 +00:00
										 |  |  | #      CHANNEL_LIBS+=chan_modem_i4l.so 
 | 
					
						
							|  |  |  |        CHANNEL_LIBS+=chan_oss.so | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  |     endif | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   endif | 
					
						
							| 
									
										
										
										
											2004-12-14 23:36:30 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ifeq (${OSARCH},SunOS) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   SOLINK+=-lrt | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/ixjuser.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/ixjuser.h),) | 
					
						
							|  |  |  |   CHANNEL_LIBS+=chan_phone.so | 
					
						
							| 
									
										
										
										
											2004-05-31 19:40:23 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2003-10-26 18:50:49 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | ifneq ($(wildcard h323/libchanh323.a),) | 
					
						
							|  |  |  |   CHANNEL_LIBS+=chan_h323.so | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-31 22:51:12 +00:00
										 |  |  | ifneq ($(wildcard misdn/chan_misdn_lib.a),) | 
					
						
							|  |  |  |   CHANNEL_LIBS+=chan_misdn.so | 
					
						
							| 
									
										
										
										
											2005-12-09 11:00:48 +00:00
										 |  |  |   CFLAGS+=-Imisdn  | 
					
						
							| 
									
										
										
										
											2005-10-31 22:51:12 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-04-06 16:17:14 +00:00
										 |  |  | CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/alsa/asoundlib.h),) | 
					
						
							|  |  |  |   CHANNEL_LIBS+=chan_alsa.so | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-12-20 07:45:05 +00:00
										 |  |  | ifndef WITHOUT_PRI | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libpri.so.1)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libpri.so.1),) | 
					
						
							|  |  |  |   CFLAGS+=-DZAPATA_PRI | 
					
						
							|  |  |  |   ZAPPRI=-lpri | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2005-12-20 07:45:05 +00:00
										 |  |  | endif # WITHOUT_PRI
 | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libmfcr2.so.1)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libmfcr2.so.1),) | 
					
						
							|  |  |  |   CFLAGS+=-DZAPATA_R2 | 
					
						
							|  |  |  |   ZAPR2=-lmfcr2 | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2000-04-06 16:17:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-02-16 19:23:59 +00:00
										 |  |  | ALSA_SRC=chan_alsa.c | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ifneq ($(wildcard alsa-monitor.h),) | 
					
						
							|  |  |  |   CFLAGS+=-DALSA_MONITOR | 
					
						
							|  |  |  |   ALSA_SRC+=alsa-monitor.h | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-11-08 00:12:21 +00:00
										 |  |  | ifndef WITHOUT_ZAPTEL | 
					
						
							| 
									
										
										
										
											2005-09-14 01:10:20 +00:00
										 |  |  | ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),) | 
					
						
							|  |  |  |   ifeq (${OSARCH},NetBSD) | 
					
						
							|  |  |  |     SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/pkg/lib | 
					
						
							|  |  |  |   endif | 
					
						
							|  |  |  |   ifeq (${OSARCH},FreeBSD) | 
					
						
							|  |  |  |     SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/local/lib | 
					
						
							|  |  |  |   endif | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   CFLAGS+=-DIAX_TRUNKING | 
					
						
							|  |  |  |   CHANNEL_LIBS+=chan_zap.so | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2005-11-08 00:12:21 +00:00
										 |  |  | endif # WITHOUT_ZAPTEL
 | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/vpbapi.h),) | 
					
						
							|  |  |  |   CHANNEL_LIBS+=chan_vpb.so | 
					
						
							|  |  |  |   CFLAGS+=-DLINUX | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2002-02-16 19:23:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-12-25 21:12:07 +00:00
										 |  |  | CFLAGS+=-DCRYPTO | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ifneq ($(OSARCH),CYGWIN) | 
					
						
							| 
									
										
										
										
											2003-04-27 18:13:11 +00:00
										 |  |  | CFLAGS+=-fPIC | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2001-12-25 21:12:07 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | CFLAGS+=#-DVOFRDUMPER | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-06 18:14:52 +00:00
										 |  |  | ZAPDIR=/usr/lib | 
					
						
							| 
									
										
										
										
											2001-08-15 01:46:30 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/nbs.h),) | 
					
						
							|  |  |  |   CHANNEL_LIBS+=chan_nbs.so | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2003-02-07 19:23:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-08-19 01:23:39 +00:00
										 |  |  | ifndef OPENH323DIR | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   OPENH323DIR=$(HOME)/openh323 | 
					
						
							| 
									
										
										
										
											2003-08-19 01:23:39 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ifndef PWLIBDIR | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   PWLIBDIR=$(HOME)/pwlib | 
					
						
							| 
									
										
										
										
											2003-08-19 01:23:39 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-02-07 19:23:19 +00:00
										 |  |  | #CFLAGS+=$(shell [ -f $(ZAPDIR)/libzap.a ] && echo "-I$(ZAPDIR)")
 | 
					
						
							| 
									
										
										
										
											2001-03-06 18:14:52 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-05-06 00:00:20 +00:00
										 |  |  | all: depend $(CHANNEL_LIBS)  | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | clean: | 
					
						
							| 
									
										
										
										
											2003-05-06 00:00:20 +00:00
										 |  |  | 	rm -f *.so *.o .depend | 
					
						
							| 
									
										
										
										
											2001-12-25 21:12:07 +00:00
										 |  |  | 	rm -f busy.h ringtone.h gentone gentone-ulaw | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %.so : %.o | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} ${LIBS} | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-08-19 16:42:30 +00:00
										 |  |  | ifneq ($(wildcard .depend),) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   include .depend | 
					
						
							| 
									
										
										
										
											2003-08-19 16:42:30 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2003-05-06 00:00:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-29 04:37:02 +00:00
										 |  |  | ifneq ($(wildcard h323/Makefile.ast),) | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  |   include h323/Makefile.ast | 
					
						
							| 
									
										
										
										
											2005-04-29 04:37:02 +00:00
										 |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-31 22:51:12 +00:00
										 |  |  | ifneq ($(wildcard misdn/Makefile.ast),) | 
					
						
							|  |  |  |   include misdn/Makefile.ast | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-04-30 04:42:40 +00:00
										 |  |  | gentone: gentone.c | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 	$(HOST_CC) -o gentone gentone.c -lm | 
					
						
							| 
									
										
										
										
											2001-04-30 04:42:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-12-25 21:12:07 +00:00
										 |  |  | gentone-ulaw: gentone-ulaw.c | 
					
						
							| 
									
										
										
										
											2005-08-30 02:54:02 +00:00
										 |  |  | 	$(HOST_CC) -o gentone-ulaw gentone-ulaw.c -lm | 
					
						
							| 
									
										
										
										
											2001-12-25 21:12:07 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-04-30 04:42:40 +00:00
										 |  |  | busy.h: gentone | 
					
						
							|  |  |  | 	./gentone busy 480 620 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ringtone.h: gentone | 
					
						
							|  |  |  | 	./gentone ringtone 440 480 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-05 00:17:57 +00:00
										 |  |  | chan_oss.o: chan_oss.c busy.h ringtone.h | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | chan_alsa.o: chan_alsa.c busy.h ringtone.h | 
					
						
							| 
									
										
										
										
											2000-07-04 15:50:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-10-21 02:57:29 +00:00
										 |  |  | ifeq (${OSARCH},OpenBSD) | 
					
						
							|  |  |  | chan_oss.so: chan_oss.o | 
					
						
							| 
									
										
										
										
											2003-10-26 18:50:49 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio | 
					
						
							| 
									
										
										
										
											2003-10-21 02:57:29 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2004-08-31 13:32:11 +00:00
										 |  |  | ifeq (${OSARCH},NetBSD) | 
					
						
							|  |  |  | chan_oss.so: chan_oss.o | 
					
						
							|  |  |  | 	$(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2003-10-21 02:57:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-07 09:34:01 +00:00
										 |  |  | chan_iax2.so: chan_iax2.o iax2-parser.o iax2-provision.o | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ ${CYGSOLINK} chan_iax2.o iax2-parser.o iax2-provision.o ${CYGSOLIB} | 
					
						
							| 
									
										
										
										
											2003-11-12 18:23:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-12-10 02:19:22 +00:00
										 |  |  | chan_zap.o: chan_zap.c | 
					
						
							|  |  |  | 	$(CC) -c $(CFLAGS) -o chan_zap.o chan_zap.c | 
					
						
							| 
									
										
										
										
											2003-02-07 19:23:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-08-15 01:46:30 +00:00
										 |  |  | chan_zap.so: chan_zap.o | 
					
						
							| 
									
										
										
										
											2003-12-10 02:19:22 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ $<  $(ZAPPRI) $(ZAPR2) -ltonezone | 
					
						
							| 
									
										
										
										
											2000-07-04 15:50:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 16:29:02 +00:00
										 |  |  | chan_sip.so: chan_sip.o | 
					
						
							| 
									
										
										
										
											2005-11-01 21:53:30 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ ${CYGSOLINK} chan_sip.o ${CYGSOLIB} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | chan_agent.so: chan_agent.o | 
					
						
							|  |  |  | 	$(CC) $(SOLINK) -o $@ ${CYGSOLINK} chan_agent.o ${CYGSOLIB} ${CYG_CHAN_AGENT} | 
					
						
							| 
									
										
										
										
											2004-01-22 16:29:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-02-16 19:23:59 +00:00
										 |  |  | chan_alsa.o: $(ALSA_SRC) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | chan_alsa.so: chan_alsa.o | 
					
						
							| 
									
										
										
										
											2003-10-26 18:50:49 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ $< -lasound -lm -ldl | 
					
						
							| 
									
										
										
										
											2002-02-16 19:23:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-02-07 19:23:19 +00:00
										 |  |  | chan_nbs.so: chan_nbs.o | 
					
						
							| 
									
										
										
										
											2003-10-26 18:50:49 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ $< -lnbs | 
					
						
							| 
									
										
										
										
											2003-02-07 19:23:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-15 14:39:06 +00:00
										 |  |  | chan_vpb.o: chan_vpb.c | 
					
						
							| 
									
										
										
										
											2003-04-18 14:34:46 +00:00
										 |  |  | 	$(CXX) -c $(CFLAGS) -o $@ chan_vpb.c | 
					
						
							| 
									
										
										
										
											2003-04-15 14:39:06 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | chan_vpb.so: chan_vpb.o | 
					
						
							| 
									
										
										
										
											2003-10-26 18:50:49 +00:00
										 |  |  | 	 $(CXX) $(SOLINK) -o $@ $< -lvpb -lpthread -lm -ldl | 
					
						
							| 
									
										
										
										
											2003-04-15 14:39:06 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-29 04:37:02 +00:00
										 |  |  | ifeq (${OSARCH},Linux) | 
					
						
							|  |  |  | chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast | 
					
						
							|  |  |  | 	$(CC) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS) -lstdc++ | 
					
						
							|  |  |  | else | 
					
						
							| 
									
										
										
										
											2003-08-16 17:00:22 +00:00
										 |  |  | chan_h323.so: chan_h323.o h323/libchanh323.a | 
					
						
							| 
									
										
										
										
											2004-07-30 18:57:37 +00:00
										 |  |  | 	$(CC) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat | 
					
						
							| 
									
										
										
										
											2005-04-29 04:37:02 +00:00
										 |  |  | endif | 
					
						
							| 
									
										
										
										
											2003-08-16 17:00:22 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-31 22:51:12 +00:00
										 |  |  | chan_misdn.so: chan_misdn.o chan_misdn_config.o misdn/chan_misdn_lib.a | 
					
						
							| 
									
										
										
										
											2005-12-09 11:00:48 +00:00
										 |  |  | 	$(CC) -shared -Xlinker -x -L/usr/lib -o $@ $^ -lisdnnet -lmISDN | 
					
						
							| 
									
										
										
										
											2005-10-31 22:51:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-12-09 11:00:48 +00:00
										 |  |  | chan_misdn.o: chan_misdn.c | 
					
						
							|  |  |  | 	$(CC) $(CFLAGS) -DCHAN_MISDN_VERSION=\"0.2.1\" -c $< -o $@ | 
					
						
							| 
									
										
										
										
											2003-08-16 17:00:22 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-01-03 17:02:23 +00:00
										 |  |  | #chan_modem.so : chan_modem.o
 | 
					
						
							|  |  |  | #	$(CC) -rdynamic -shared -Xlinker -x -o $@ $<
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-12-01 05:25:44 +00:00
										 |  |  | install: all | 
					
						
							| 
									
										
										
										
											2003-10-25 17:27:53 +00:00
										 |  |  | 	for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done | 
					
						
							| 
									
										
										
										
											2004-03-23 05:06:50 +00:00
										 |  |  | 	if ! [ -f chan_iax.so ]; then rm -f $(DESTDIR)$(MODULES_DIR)/chan_iax.so ; fi | 
					
						
							| 
									
										
										
										
											2003-05-06 00:00:20 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | depend: .depend | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .depend: | 
					
						
							| 
									
										
										
										
											2005-06-20 17:26:08 +00:00
										 |  |  | 	../build_tools/mkdep $(CFLAGS) `ls *.c` | 
					
						
							| 
									
										
										
										
											2003-05-06 00:00:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-04-16 18:57:07 +00:00
										 |  |  | env: | 
					
						
							| 
									
										
										
										
											2004-04-27 21:30:32 +00:00
										 |  |  | 	env | 
					
						
							| 
									
										
										
										
											2004-04-16 18:57:07 +00:00
										 |  |  | 
 |