#
# Makefile
#
# Make file for ptlib library
#
# Portable Windows Library
#
# Copyright (c) 1993-1998 Equivalence Pty. Ltd.
#
# 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 Portable Windows Library.
#
# The Initial Developer of the Original Code is Equivalence Pty. Ltd.
#
# Portions are Copyright (C) 1993 Free Software Foundation, Inc.
# All Rights Reserved.
# 
# Contributor(s): ______________________________________.
#
# $Log: Makefile,v $
# Revision 1.4  2001/10/05 03:52:38  robertj
# Removed redundent stuff, especially VPB define which is basically wrong.
#
# Revision 1.3  2000/02/02 04:10:15  craigs
# Changed to use common Makefiles
#
# Revision 1.2  2000/01/04 00:16:25  craigs
# Changed for new AnswerCall timing
#
# Revision 1.1  1999/12/22 09:49:36  craigs
# Initial version
#
# Revision 1.3  1999/10/28 12:26:18  craigs
# Changed version number
#
# Revision 1.2  1999/10/24 04:19:28  craigs
# Added make dist target
#
# Revision 1.1  1999/10/11 00:15:18  craigs
# Initial version
#
#

PROG		= pstngw
SOURCES		:= main.cxx
TAR_SOURCES	= Makefile main.h main.cxx version.h 


ifndef OPENH323DIR
OPENH323DIR=$(HOME)/openh323
endif

include $(OPENH323DIR)/openh323u.mak


ifdef NOTRACE
STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
else
STDCCFLAGS += -DPTRACING
endif

# Extra dependencies

$(TARGET): $(H323_LIBFILE)


tarfiles:
	@echo $(patsubst %, $(notdir $(shell pwd))/%, $(TAR_SOURCES))

dist:
	( cd ..; tar -czvf pstngw_0.1alpha2.tgz $(patsubst %, $(notdir $(shell pwd))/%, $(TAR_SOURCES)) )


