#
# Makefile
#
# Make file for OpenIVR
#
# OpenIVR
#
# 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 Initial Developer of the Original Code is Equivalence Pty. Ltd.
#
# Contributor(s): ______________________________________.
#
# $Log: Makefile,v $
# Revision 1.3  2003/02/26 01:30:00  robertj
# Fixed comments and default OPENH323DIR, thanks Ivanov
#
# Revision 1.2  2002/08/14 15:19:56  craigs
# Remove unneeded lines from the Makefile
#
# Revision 1.1  2002/08/14 07:09:03  craigs
# Initial version
#
# Revision 1.2  2002/07/29 15:17:52  csoutheren
# Initial version
#
#

PROG		= openivr
SOURCES		:= main.cxx custom.cxx
TAR_SOURCES	= Makefile main.h main.cxx version.h custom.cxx

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 openivr.tgz $(patsubst %, $(notdir $(shell pwd))/%, $(TAR_SOURCES)) )
