mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-14 15:37:49 -07:00
7a1dcff6a6
console_video.c This will ease the task of splitting console_video.c into its components (V4L and X11 grabbers, various video codecs and packetizers, SDL), as well as ease future extensions (e.g. additional video sources, codecs and rendering engines). For the time being nothing changes for users: video support is off by default, and requires -DHAVE_VIDEO_CONSOLE on the command line to be included (if SDL and FFMPEG are available). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
118 lines
3.0 KiB
Makefile
118 lines
3.0 KiB
Makefile
#
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
#
|
|
# Makefile for channel drivers
|
|
#
|
|
# Copyright (C) 1999-2006, Digium, Inc.
|
|
#
|
|
# This program is free software, distributed under the terms of
|
|
# the GNU General Public License
|
|
#
|
|
|
|
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
|
|
|
|
MODULE_PREFIX=chan
|
|
MENUSELECT_CATEGORY=CHANNELS
|
|
MENUSELECT_DESCRIPTION=Channel Drivers
|
|
|
|
ifeq ($(OSARCH),OpenBSD)
|
|
PTLIB=-lpt_OpenBSD_x86_r
|
|
H323LIB=-lh323_OpenBSD_x86_r
|
|
endif
|
|
|
|
ifeq ($(OSARCH),linux-gnu)
|
|
PTLIB=-lpt_linux_x86_r
|
|
H323LIB=-lh323_linux_x86_r
|
|
CHANH323LIB=-ldl
|
|
endif
|
|
|
|
ifeq ($(OSARCH),FreeBSD)
|
|
PTLIB=-lpt_FreeBSD_x86_r
|
|
H323LIB=-lh323_FreeBSD_x86_r
|
|
CHANH323LIB=-pthread
|
|
endif
|
|
|
|
ifeq ($(OSARCH),NetBSD)
|
|
PTLIB=-lpt_NetBSD_x86_r
|
|
H323LIB=-lh323_NetBSD_x86_r
|
|
endif
|
|
|
|
ifeq ($(wildcard h323/libchanh323.a),)
|
|
MODULE_EXCLUDE += chan_h323
|
|
endif
|
|
|
|
ifndef OPENH323DIR
|
|
OPENH323DIR=$(HOME)/openh323
|
|
endif
|
|
|
|
ifndef PWLIBDIR
|
|
PWLIBDIR=$(HOME)/pwlib
|
|
endif
|
|
|
|
all: _all
|
|
|
|
chan_oss.so: console_video.o
|
|
|
|
include $(ASTTOPDIR)/Makefile.moddir_rules
|
|
|
|
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
|
|
LIBS+= -lres_monitor.so -lres_features.so
|
|
endif
|
|
|
|
clean::
|
|
rm -f gentone
|
|
$(MAKE) -C misdn clean
|
|
|
|
ifneq ($(wildcard h323/Makefile.ast),)
|
|
include h323/Makefile.ast
|
|
H323LDFLAGS+=-Wl,--version-script=h323/noexport.map
|
|
clean::
|
|
if [ -f h323/Makefile ]; then $(MAKE) -C h323 clean; fi
|
|
else
|
|
h323/libchanh323.a h323/Makefile.ast:
|
|
$(CMD_PREFIX) $(MAKE) -C h323
|
|
$(CMD_PREFIX) rm -f ../main/asterisk
|
|
$(CMD_PREFIX) echo "***************************************************************"
|
|
$(CMD_PREFIX) echo
|
|
$(CMD_PREFIX) echo "********** Re-run 'make' to pick up H.323 parameters **********"
|
|
$(CMD_PREFIX) echo
|
|
$(CMD_PREFIX) echo "***************************************************************"
|
|
$(CMD_PREFIX) exit 1
|
|
endif
|
|
|
|
dist-clean::
|
|
rm -f h323/Makefile
|
|
|
|
# gentone must be built with the HOST environment
|
|
gentone: gentone.c
|
|
$(ECHO_PREFIX) echo " [HOST_CC] $^ -> $@"
|
|
$(CMD_PREFIX) $(HOST_CC) -o $@ $^ -lm
|
|
|
|
busy.h: gentone
|
|
./gentone busy 480 620
|
|
|
|
ringtone.h: gentone
|
|
./gentone ringtone 440 480
|
|
|
|
$(if $(filter chan_iax2,$(EMBEDDED_MODS)),modules.link,chan_iax2.so): iax2-parser.o iax2-provision.o
|
|
|
|
ifeq ($(OSARCH),linux-gnu)
|
|
chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast
|
|
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
|
|
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS)
|
|
else
|
|
chan_h323.so: chan_h323.o h323/libchanh323.a
|
|
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
|
|
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
|
|
endif
|
|
|
|
chan_misdn.o: ASTCFLAGS+=-Imisdn
|
|
|
|
misdn_config.o: ASTCFLAGS+=-Imisdn
|
|
|
|
misdn/isdn_lib.o: ASTCFLAGS+=-Wno-strict-aliasing
|
|
|
|
$(if $(filter chan_misdn,$(EMBEDDED_MODS)),modules.link,chan_misdn.so): chan_misdn.o misdn_config.o misdn/isdn_lib.o misdn/isdn_msg_parser.o
|
|
|
|
chan_vpb.oo: ASTCFLAGS:=$(filter-out -Wdeclaration-after-statement,$(ASTCFLAGS))
|