#################################################################################
#
# Makefile
#
# Makefile for the OpenH323 wrapper library and the ASTERISK channel
# driver module.
#
# User-configurable section.
#
# Copyright (c) 2002-2005 InAccess Networks
# Michalis Manousos <manousos@inaccessnetworks.com>
# Dimitris Economou <decon@inaccessnetworks.com>
#
# This file is part of "H.323 support for ASTERISK"
#
# "H.323 support for ASTERISK" is free software;
# you can redistribute it and/or modify it under the terms of the
# GNU General Public License as published by the Free Software Foundation;
# either version 2 of the License, or (at your option) any later version. 
#
# "H.323 support for ASTERISK" is distributed in the hope that it will be 
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details. 
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
#
# $Id: Makefile,v 1.51 2005/09/09 15:03:53 manousos Exp $
#
#################################################################################

# Export all variables to child processes
.EXPORT_ALL_VARIABLES:

#################################################################################
###### START OF USER CONFIGURABLE PARAMETERS 

#
# Install everything under this directory. If this is empty, then everything
# will be installed under /
#
DESTDIR=

#
# Set PWLIBDIR variable to the directory containing the sources of 
# PWlib library. 
#
# Note: You must build the 'pwlib' library before trying to 
# compile asterisk-oh323. Do not use the installed library of your
# distribution. It won't work.
#
PWLIBDIR=/usr/src/pwlib

#
# Set OPENH323LIBDIR variable to the directory containing the sources of
# OpenH323 library. 
#
# Note: You must build the 'openh323' library before trying to 
# compile asterisk-oh323. Do not use the installed library of your
# distribution. It won't work.
#
OPENH323DIR=/usr/src/openh323

#
# Set ASTERISKINCDIR variable to the directory containing the include files of
# Asterisk PBX.
#
ASTERISKINCDIR=/usr/src/asterisk/include

#
# Set ASTERISKMODDIR variable to the directory where ASTERISK's modules reside.
# The "chan_oh323.so" driver will be installed in this directory.
#
# Note: This directory is created under $DESTDIR.
#
ASTERISKMODDIR=/usr/lib/asterisk/modules

#
# Set ASTERISKETCDIR variable to the directory where ASTERISK's configuration
# files reside. The "oh323.conf" file will be installed in this directory.
#
# Note: This directory is created under $DESTDIR.
#
ASTERISKETCDIR=/etc/asterisk

#
# Set OH323WRAPLIBDIR variable to the directory where oh323wrap library
# will be installed. You SHOULD add this directory to your 
# LD_LIBRARY_PATH shell variable, or to the /etc/ld.so.conf
# file and run "ldconfig" after the installation of asterisk-oh323.
#
# Note: This directory is created under $DESTDIR.
#
OH323WRAPLIBDIR=/usr/local/lib

#
# Set WRAPTRACING to 1 to enable tracing information from the OpenH323Wrap
# library or to 0 to disable it.
#
WRAPTRACING=1

#
# Set OH323BUILDTYPE to 'debug', 'opt' or 'optnotrace' to select the
# build type. This should match the build type of the libraries 
# (OpenH323/Pwlib).
#
#OH323BUILDTYPE=debug
OH323BUILDTYPE=opt
#OH323BUILDTYPE=optnotrace

#
# Set OH323STAT to 1 to build the OH323 Asterisk channel driver
# with statically linked OpenH323/Pwlib/oh323wrap libraries. 
#
# Note: Turn this flag on if you don't want problems in runtime where the
# channel driver links with different libraries than these used during
# compilation (e.g. if you have installed a distro specific OpenH323/Pwlib).
# With this flag on the channel driver is huge, in size, but Asterisk boots
# faster!
#
OH323STAT=1

#
# Define options that were used during Asterisk compilation. It is
# very important Asterisk compilation and asterisk-oh323 compilation
# to be made with exactly the same flags.
#
# Note: This set of flags is incomplete. If more flags were used for
# Asterisk compilation they should be entered manually. Also, the 'rules.mak'
# should be modified accordingly.
#
#DEBUG_THREADS=1
#DO_CRASH=1
#DETECT_DEADLOCKS=1

#
# Extra compilation options. Here you should add the options
# PWLIB, OPENH323 were compiled with.
#
#NOVIDEO=1
#NO_SPEEX=1
#NOAUDIOCODECS=1
#NOTRACE=1
NO_IPv6=1
#P_PTHREADS=1

#HAS_OH323MODS=1
#SKIP_SUFFIX=1
#LIBPT_BASE=libpt
#LIBH323_BASE=libh323

#SKIP_EXTLIBS=1
#EXTLIBS=

#
# Uncomment this line if you compile with Openh323/Pwlib versions older than Pandora
# (e.g. if you use the Janus series). Leave it comment-out for Pandora and above.
#
#USE_OLD_CAPABILITIES_API=1

###### END OF USER CONFIGURABLE PARAMETERS 
#################################################################################

include rules.mak

