
# $Log: Makefile,v $
# Revision 1.33  2001/02/27 00:55:25  larryt
# revert Kim's changes - all the rtp changes I checked in today. -kim
#
# Revision 1.31  2001/02/01 01:23:05  icahoon
# There is now only one Operator::process() method in the sip base.
# The SipProxyEvent no longer derives from Event. Instead the functionality
# had been merged and Event has been moved to util/transport since it is
# still being used by the h.323 translator. Every sip proxy that
# referenced Event was changed to reference SipProxyEvent.
#
# As well, there were minor changes so that everything would build on Solaris 8.
# Everything except the h.323 translator should at least compile under linux and
# solaris at this point.
#
# Revision 1.30  2000/09/27 01:08:58  kle
# Add support to transmit DTMF in RTP (RFC2388 only)
#
# Revision 1.29  2000/09/13 01:11:59  kle
# Added support for parsing DTMF in RTP (RFC 2833) and CiscoRTP.  (readonly)
#
# Revision 1.28  2000/08/24 01:49:04  bogawa
# fixes for FreeBSD
#
# Revision 1.27  2000/06/21 01:03:55  kle
# Fixed cycle counting.  Added RtpTransmitter::transmitRaw(char* data, int len).
# Reduced memory copies when receiving and transmitting packets.  No changes in RTCP.
#
# Revision 1.26  2000/05/24 20:46:28  bogawa
# fixes to build -- require PTHREADs
#
# Revision 1.25  2000/01/21 22:32:37  wenqing
# update
#
# Revision 1.24  2000/01/21 19:35:23  wenqing
# update
#
# Revision 1.23  2000/01/06 02:34:39  wenqing
# add codec conversion
#
# Revision 1.22  1999/12/21 21:56:34  bogawa
# fixes for great renaming
#
# Revision 1.21  1999/12/17 04:29:04  wenqing
# remove sampleUsage
#
# Revision 1.20  1999/12/06 21:28:59  bogawa
# make file fixes for rtp and util
#
# Revision 1.19  1999/12/01 21:44:44  bogawa
# make file fixes to fix compiling on Linux and SIP package adding
#
# Revision 1.18  1999/11/24 02:30:03  wenqing
# mv files to test. change for sampleUsage to port to sh-vxworks
#
# Revision 1.17  1999/11/24 00:18:45  wenqing
# New rtp/Rtcp.changes for new udp stack. Makefile changes for make udp from
# util dir. Changes for porting to vxworks.
#
# Revision 1.16  1999/10/25 22:02:20  bogawa
# merge from irix6-0914 back into the main branch
#
# Revision 1.15.4.3  1999/10/07 22:10:32  bogawa
# makefile fixes to make makefiles cleaner and more correct, add rtp to stable of ones using our makefile system
#
# Revision 1.15.4.2  1999/09/15 00:58:54  bogawa
# merge in chok's new agent code
#
# Revision 1.15.4.1  1999/09/15 00:24:20  bogawa
# merge in cheung's changes and changes to compile under sgi
#
# Revision 1.15  1999/08/17 21:03:42  kle
# Improvements on the jitter buffer.
# Flexability for 20ms on the wire.
# Added usage for Cullen's UDP code.
# Added usage for Chok's cpLog code.
#
# Revision 1.14  1999/08/03 20:06:37  kle
# Fixed poping sounds in rtp streaming data.
#
# Revision 1.13  1999/08/02 23:58:02  kle
# Revision update RTP
#
# Revision 1.12  1999/07/15 19:27:10  bogawa
#
# fix for intel architecture machine independence
#
# Revision 1.11  1999/06/30 08:00:37  bogawa
#
# corrected the contact information
#
# Revision 1.10  1999/06/30 04:51:39  bogawa
#
# fix make file
#
# Revision 1.9  1999/06/30 00:34:29  kle
#
# add the sample files from RTP to the release directory
#
# Revision 1.8  1999/06/29 23:08:53  kle
# Updated changes relating to new RTP naming
#
# Revision 1.6  1999/06/29 14:39:57  kle
# Added more functions to rtpApi.  Added documentation.
#
# Revision 1.5  1999/06/29 01:49:58  bogawa
#
# Update the RTP code to match Cullen's automatically generated code
#
# Revision 1.3  1999/06/08 20:43:37  bogawa
#
# fix make file to properly install the right header files
#
# Revision 1.2  1999/06/08 18:39:20  cullen
# put insall target after all target
#
# Revision 1.1  1999/06/08 18:33:38  cullen
# Creating files
#

BUILD = ../build

include $(BUILD)/Makefile.pre

PACKAGES += UTIL PTHREAD LIBXML LIBCEXT

INCDIRS += codec

DEFINES += USE_PTHREADS

TARGET_LIBRARY = librtp.a

TESTPROGRAMS = \
        codec/encode.c \
        codec/decode.c

CODE_SUBDIRS = codec

# name of all files to be compiled (don't include header files)
SRC = \
	RtpPacket.cxx \
	RtpTransmitter.cxx \
	RtpReceiver.cxx \
	RtcpPacket.cxx \
	RtcpTransmitter.cxx \
	RtcpReceiver.cxx \
	RtpEvent.cxx \
	RtpEventReceiver.cxx \
	RtpSession.cxx \
	NtpTime.cxx \
	rtpTools.cxx \
        rtpCodec.cxx \
        codec/g711.c \
        codec/g721.c \
        codec/g723_24.c \
        codec/g723_40.c \
        codec/g72x.c

CAPIBUILDER := $(BUILD)/../tools/cApiBuilder

rtpApi.h: rtpTools.hxx Rtp.hxx Rtcp.hxx RtpSession.hxx $(CAPIBUILDER)
	cat rtpTools.hxx Rtp.hxx Rtcp.hxx RtpSession.hxx | $(CAPIBUILDER) -h > rtpApi.h

rtpApi.cxx: rtpTools.hxx Rtp.hxx Rtcp.hxx RtpSession.hxx $(CAPIBUILDER)
	cat rtpTools.hxx Rtp.hxx Rtcp.hxx RtpSession.hxx | $(CAPIBUILDER) -irtpTools.hxx -iRtp.hxx -iRtcp.hxx -iRtpSession.hxx   > rtpApi.cxx

include $(BUILD)/Makefile.post
