
# $Id: Makefile,v 1.29 2000/08/17 16:16:14 mason Exp $

# $Log: Makefile,v $
# Revision 1.29  2000/08/17 16:16:14  mason
# Cleaning up the CVS tree and removing un-used features such as VM.
#
# Revision 1.28  2000/07/21 00:09:48  hyu
# fix BUILD to point to the right build directory
#
# Revision 1.27  2000/01/05 02:38:59  mason
# Integrated new SDP with freebx and mgcp.
# Modified the corresponding Makefiles to use the SDP package.
# Renamed old SdpConnection in SDPMedia.hxx to SDPConnection
# to avoid conflicts.
#
# Revision 1.26  1999/12/21 22:29:26  bogawa
# fixes for the great renaming
#
# Revision 1.25  1999/12/01 21:44:44  bogawa
# make file fixes to fix compiling on Linux and SIP package adding
#
# Revision 1.24  1999/11/18 00:28:48  bogawa
# Add changes to use the util directory as well as try to make it possible to take out the calls to cout.
#
# Revision 1.23  1999/11/03 23:56:45  ctam
# Replace Makefile with correct one.
#
# Revision 1.21  1999/10/25 22:02:18  bogawa
# merge from irix6-0914 back into the main branch
#
# Revision 1.20.4.3  1999/10/01 01:21:20  ctam
# Added fix for eventual slowdown of gateway (due to race condition).
# Minor clean up of code.
#
# Files:  Makefile Dn.cxx Dn.h Gateway.cxx Gateway.h
#
# Revision 1.20.4.2  1999/09/15 02:38:51  devel
# sgi compatibility changes
#
# Revision 1.20.4.1  1999/09/15 00:24:16  bogawa
# merge in cheung's changes and changes to compile under sgi
#
# Revision 1.20  1999/08/25 20:50:57  bogawa
# New makefiles offer more flexibility (e.g. targets that let you select
# what you intend to make) as well as a packaging structure.
#
# Revision 1.19  1999/08/05 18:51:46  eckelcu
# Modified Files:
# 	Makefile Connection.cxx Connection.h Dn.cxx Dn.h
# 	Gateway.cxx Gateway.h gw.cfg Hardware.h
# Added Files:
# 	TrunkHardware.cxx TrunkHardware.h
# Added trunk version of null hardware file.
# Modified gw.cfg to default to 1 endpoint. This value is
# changed to GW_ENDPOINT_MAX iff 'trunk' is specified as
# the runtime parameter for the deviceName.
# Added code to specify and assign the number of connections
# per endpoint and the rtp ports to be used for audio sessions.
# Added code to the endpoints to handle multiple connections.
# Added code for the gateway to allocate rtp ports and
# connection ids.
# Added a global ptr which may be used by all objects to
# access the gateway.
#
# Revision 1.18  1999/07/30 00:26:23  eckelcu
# Updated fifo to same version being used by call agent and
# modified Makefile to compile correctly with new fifo files.
# Added general timer mechanism to endpoint, and used this
# mechanism to provide endpoint detection of flashhook.
# Flashhook is detected as an onhook/offhook combination
# occurring in less than 700 msec.
#
# Revision 1.17  1999/07/29 00:48:28  eckelcu
# Modified Files:
# 	Makefile common.h Connection.cxx Connection.h Dn.cxx
# 	Dn.h Gateway.cxx Gateway.h Hardware.cxx Hardware.h
# 	NullHardware.cxx NullHardware.h ReqEv.cxx ReqEv.h ReqSig.cxx
# 	ReqSig.h
# Added Files:
# 	cpLog.cxx cpLog.h gw.cfg parse3tuple.cxx parse3tuple.h
# Replaced hardcoded configuration file with the file 'gw.cfg'.
# The parameters specifed in this file may be overridden using
# command line arguments.
# Added cpLog and replaced calls to cerr with appropriate cpLog calls.
# Performed some code cleanup to bring code more in line with the
# established coding conventions.
#
# Revision 1.16  1999/07/27 01:36:54  bogawa
#
# fix for makefile
#
# Revision 1.15  1999/07/27 00:07:17  jitterbug
# Change for VM so that re-compile from freebx/gw/test directory works.
#
# Revision 1.14  1999/07/25 23:00:40  ctam
# Add tmp directory to bin.$(ARCH) directory
#
# Revision 1.13  1999/07/25 21:53:02  ctam
#
# Changed for VM.
#
# Revision 1.12  1999/07/25 21:19:30  ctam
#
# Fix problem with mkdir obj.$(ARCH)/vm.
#
# Revision 1.11  1999/07/25 20:47:28  ctam
#
# Add back soft link of vm directory to the test directory.
#
# Revision 1.10  1999/07/24 01:33:43  bogawa
#
# return to copying of Script directory
#
# Revision 1.9  1999/07/23 23:56:31  bogawa
#
# the gw/test Makefile was changed to use the new make file system.
#
# improve the global makefiles.  Now, most targets use these makefiles
# which should simplify the lives of the users, we hope.
#
# Key features include support for nested object directories as well as
# a more coherent install strategy (so that installs are less likely to
# produce error messages)
#
# Revision 1.8  1999/07/23 23:32:18  ctam
#
# Replace getdigit.cxx with DigitMap.cxx
#
# Revision 1.7  1999/07/21 01:58:10  ctam
#
# Add getdigits.cxx to Makefile
#
# Revision 1.6  1999/07/20 18:09:20  eckelcu
# Modified Files:
# 	ReqEv.cxx ReqEv.h IPJackHardware.cxx NullHardware.cxx
# 	Dn.cxx Dn.h Makefile
# Added Files:
# 	ReqSig.cxx ReqSig.h
# Restructured the handling of events and signals. Requested Events
# are encapsulated in the ReqEv class (files ReqEv.h/cxx). Requested
# Signals are encapsulated in the ReqSig class (files ReqSig.h/cxx).
# The ReqSig class and files replace the Signal class and files and
# the Makefile is modified accordingly.
# An additonal endpoint msg type is also added to handle timeouts.
#
# Revision 1.5  1999/07/20 00:58:31  bogawa
#
# fix install target (lame, but it works)
#
# Revision 1.4  1999/07/19 23:41:21  bogawa
#
# upgrade to actually build out everything in the code.
#
# Revision 1.3  1999/07/17 21:01:13  luan
# changes from Sergey for voice mail.
#
# Revision 1.2  1999/07/16 19:43:28  ctam
#
# add VM file to compile
#
# Revision 1.1  1999/07/14 22:02:03  eckelcu
# Initial version of file. Corresponds to version 1.1 of gateway files.
#



all: target

BUILD = ../../build

include $(BUILD)/Makefile.pre

PACKAGES += MGCP RTP SDP PTHREAD UTIL

ifeq ($(LARCH),ia32)
PACKAGES += QUICKNET
endif

INCDIRS += ./
LDLIBS	 +=

COPYFILES = Scripts/* gw.cfg
COPYTO = bin.$(ARCH)

bin.$(ARCH)/tmp:
	mkdir -p bin.$(ARCH)/tmp

target: bin.$(ARCH)/tmp

TESTPROGRAMS = \
	Gateway.cxx 

HWSRC = \
	Hardware.cxx \
        TestHardware.cxx \
	TrunkHardware.cxx \
	NullHardware.cxx \
	IPJackHardware.cxx

# name of all files to be compiled (don't include header files)

SRC = \
	ReqEv.cxx \
	ReqSig.cxx \
	DigitMap.cxx \
        Hardware.cxx \
	Endpoint.cxx

#	Fifo.cxx \
#	cpLog.cxx \
#	parse3tuple.cxx \

#	Connection.cxx \
#	Dn.cxx

include $(BUILD)/Makefile.post
