#
# Makefile
#
# Make file for OpenH323 Gatekeeper
#
# Copyright (c) Egoboo Ltd. 1999-2000
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.0 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is Open Gatekeeper
#
# The Initial Developer of the Original Code is Egoboo Ltd.
#
# $Log: Makefile,v $
# Revision 1.15  2000/05/12 14:06:30  aunitt
# Renamed PRasLog to Log
#
# Revision 1.14  2000/05/03 13:10:10  aunitt
# Removed bogus include
#
# Revision 1.13  2000/05/02 16:31:09  aunitt
# Semi automated tarball build.
#
# Revision 1.12  2000/04/27 17:59:05  aunitt
# Updated tarball target.
# (Really do need to sort this out!)
#
# Revision 1.11  2000/04/21 13:41:41  aunitt
# Updated to version 0.6
#
# Revision 1.10  2000/04/20 18:48:38  aunitt
# Added Environ.cxx
#
# Revision 1.9  2000/04/10 19:18:35  aunitt
# Added support for Gatekeeper Routed Calls.
#
# Revision 1.8  2000/04/05 15:20:01  aunitt
# Added PRasLog object.
#
# Revision 1.7  2000/03/23 00:03:19  aunitt
# Upped build number
#
# Revision 1.6  2000/03/21 21:00:58  aunitt
# Fixed working with latest OpenH323 code.
# Patch thanks to Craig Southern.
#
# Revision 1.5  2000/03/19 17:37:11  aunitt
# Should now compile in any directory.
#
# Revision 1.4  2000/02/27 20:47:19  aunitt
# Added windows support. Fixed reply to wrong RAS address
#
# Revision 1.3  2000/02/09 22:31:09  aunitt
# Fixed not putting the Makefile in the tarball
#
# Revision 1.2  2000/02/06 19:16:09  aunitt
# Added tarball target
#
# Revision 1.1.1.1  2000/02/01 22:25:34  aunitt
# Initial revision
#
#
 

PROG		= opengate
SOURCES		= opengate.cxx EndpointTabl.cxx RasThread.cxx RasServer.cxx MulticastThread.cxx \
              AddrUtils.cxx Log.cxx CallTabl.cxx CallThread.cxx Environ.cxx

TAR_SOURCES	= $(SOURCES) opengate.h EndpointTabl.h RasThread.h RasServer.h MulticastThread.h \
		  Defaults.h mpl-1.0.htm Makefile readme.txt opengate.dsp opengate.dsw AddrUtils.h   \
		  Log.h CallTabl.h CallThread.h Environ.h Version.h tarball.mak setver/Makefile  \
		  setver/setver.cxx
		
export TAR_SOURCES

ifndef PWLIBDIR
PWLIBDIR=$(HOME)/pwlib
endif

include $(PWLIBDIR)/make/ptlib.mak

ifndef OPENH323DIR
OPENH323DIR=$(HOME)/openh323
endif

include $(OPENH323DIR)/openh323u.mak

ifndef OPENGATEDIR
OPENGATEDIR=$(OPENH323DIR)/opengate
endif

tarball:
	$(MAKE) -C setver opt
	(cd setver/obj_$(PLATFORM_TYPE)_r; setver $(OPENGATEDIR)/Version.inc)
	$(MAKE) -f tarball.mak

