
# $Id: Makefile,v 1.21 2001/01/17 01:52:25 liuhong Exp $

# $Log: Makefile,v $
# Revision 1.21  2001/01/17 01:52:25  liuhong
# remove msgTest.c file because the files it depends on are removed
#
# Revision 1.20  2000/02/25 22:14:50  bogawa
# fixes for test framework
#
# Revision 1.19  2000/01/07 01:04:46  bogawa
# embedded request code integrated, including API support for these
#
# Revision 1.18  2000/01/05 02:28:01  bogawa
# printing fixes and embedded fixes
#
# Revision 1.17  1999/12/24 05:58:26  bogawa
# add SDP test cases
#
# Revision 1.16  1999/12/23 03:56:58  bogawa
# fixes to rearrange the MGCP code a bit
#
# Revision 1.15  1999/12/21 22:17:53  bogawa
# fixes for great renaming
#
# Revision 1.14  1999/12/21 17:29:54  bogawa
# fixes for new mgcp
#
# Revision 1.13  1999/12/17 05:09:01  bogawa
#
# fixes for trivialReceiver / trivialSender to be renamed to something
# not horrible.
#
# Revision 1.12  1999/12/17 04:25:41  bogawa
# fixes for VxWorks -- with these fixes, MGCP *should* work on vxWorks as well
#
# Revision 1.11  1999/12/17 01:33:50  bogawa
# fixes to various problems with mgcp
#
# Revision 1.10  1999/12/10 09:19:42  bogawa
# low level support for embedded requests
#
# Revision 1.9  1999/11/30 17:57:30  bogawa
#
# fixed to also compile the timer test.
#
# Revision 1.8  1999/11/05 21:22:22  bogawa
#
# A new unit test tests parsing of requestedEvents.
#
# Revision 1.7  1999/11/05 01:21:30  bogawa
#
# fixes for the substring.code.
#
# Revision 1.6  1999/11/03 06:25:01  bogawa
# fixed testcase compiling.  began adding support for embedded requests
#
# Revision 1.5  1999/10/25 22:02:19  bogawa
# merge from irix6-0914 back into the main branch
#
# Revision 1.4.10.10  1999/10/12 01:00:54  bogawa
# miscellaneous fixes including SDP fixes. Adds SDP test case, as well as other test cases
#
# Revision 1.4.10.9  1999/10/05 23:29:34  bogawa
#
# new timing stuff for malloc/new
#
# Revision 1.4.10.8  1999/10/04 21:02:55  bogawa
# fixes for the code base
#
# Revision 1.4.10.7  1999/10/01 03:46:55  bogawa
# more performance stuff
#
# Revision 1.4.10.6  1999/09/30 23:59:09  bogawa
#
# New functions for timing routines more conveniently.
#
# Revision 1.4.10.5  1999/09/30 23:48:23  bogawa
#
# new tests for subsplit, the replacement for split.
#
# Revision 1.4.10.4  1999/09/30 21:10:17  bogawa
# performance and timing fixes
#
# Revision 1.4.10.3  1999/09/30 20:44:46  bogawa
#
# add more testcases which better reflect the time performance of various options.
#
# Revision 1.4.10.2  1999/09/30 03:39:35  devel
# good fixes for callAgent and gateway
#
# Revision 1.4.10.1  1999/09/30 00:52:15  bogawa
#
# newer and better coding for tokens.
#
# Revision 1.4  1999/08/05 21:35:45  bogawa
#
# Updates to the examples directories to test a number of example bits.
#
# Revision 1.3  1999/08/04 02:21:43  bogawa
#
# fix the test case code to test the local connection options
#
# Revision 1.14  1999/07/23 23:56:40  bogawa
#
# the mgcp/examples 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.13  1999/07/15 19:26:28  bogawa
#
# fix for intel architecture machine independence
#
# Revision 1.12  1999/07/09 08:21:50  bogawa
#
# fixed -- the trivial examples (which are really specific test cases)
# have been moved to the new testcases directory.
#
# Revision 1.11  1999/07/09 08:15:49  bogawa
#
# Updated Makefile to add new trivial examples -- these examples are here
# to test out specific features.
#
# Revision 1.10  1999/07/02 01:49:10  bogawa
#
# Fix for build problem when files have changed but haven't been installed.
#
# Revision 1.9  1999/06/29 22:00:03  bogawa
#
# update to the libmgcp directory.
#
# Revision 1.8  1999/06/28 23:54:11  bogawa
#
# fix for doc++ generation
#
# Revision 1.7  1999/06/28 23:01:48  bogawa
#
# add C api sample.
#
# Revision 1.6  1999/06/17 18:41:03  bogawa
#
# New, cleaner version of the Gateway.code.
#
# Revision 1.5  1999/06/09 08:24:31  bogawa
# makefile had problems -- this should reduce the amount of wrong remaking
# that it does (although it's not totally safe).
#
# Revision 1.4  1999/06/09 04:09:51  bogawa
#
# This makefile now correctly does diving makes.
#
# In addition, the code has been cleaned up and adds some comments for doc++.
#
# doc++ can be invoked by using make doc -- the current version will be shipped
# with  appropriate html documentation.
#
# Revision 1.3  1999/06/09 01:05:02  bogawa
#
# Changes to make the new structure compile correctly, and to allow the
# code to use the new hardware structure.  gateway1 is now using the
# new structure fully, while gateway2 is using it partially (actually
# not very much).
#
# A future version should be much cleaner.
#
# Revision 1.2  1999/06/08 20:24:29  bogawa
# some CVS changes to improve the building procedure for the vovida directory
#
# Revision 1.1.1.1  1999/06/08 18:12:25  bogawa
# make file system for cvs
#
# Revision 1.1.1.1  1999/06/04 23:52:54  bogawa
# create files

BUILD = ../../../build

include $(BUILD)/Makefile.pre

PACKAGES += MGCP PTHREAD SDP UTIL

#INCDIRS  += ../../lowlevel ../../libmgcp $(RELEASE)/include /usr/include /usr/include/CC
#LDFLAGS  += 
#LDLIBS	 += -L../../libmgcp/obj.$(ARCH) -lmgcp -lpthread

#SRC = \
#	TokenRecognizer.cxx

TESTPROGRAMS = \
        trivialAgent.cxx \
        trivialGateway.cxx \
        timeoutTest.cxx \
	test_split.cxx \
#	test_subsplit.cxx \
	time_subsplit.cxx \
	test_subsplit_paren_match.cxx \
	test_parse_events_requested.cxx \
	test_paren_match.cxx \
	test_substring.cxx \
	test_timer.cxx \
	time_new_thread.cxx \
	time_itos.cxx \
        test_itos.cxx \
	test_parsemsg.cxx \
	test_sdp.cxx \
	test_embedded_encode.cxx \
	test_mgcp_transmitter.cxx \
	test_vxworks_resolve.cxx \
	time_parsemsg.cxx \
	udp_client.cxx \
	udp_server.cxx \
	test_full_parse.cxx \
	mg_api.cxx \
	mgc_api.cxx

#	test_sdp_2.cxx \

TESTCASES = \
	test_itos \
	test_subsplit \
	test_parsemsg \
	test_substring \
	test_paren_match \
	test_sdp

WORK = test_embedded_encode

TokenRecognizer.h: tokenGen.txt
	$(BUILD)/../tools/buildTokenRec tokenGen.txt

TokenRecognizer.cxx: tokenGen.txt
	$(BUILD)/../tools/buildTokenRec tokenGen.txt

.PHONY: work sdp

sdp: bin.$(TARGET_NAME)/test_sdp bin.$(TARGET_NAME)/test_sdp_2

work: bin.$(TARGET_NAME)/$(WORK)

include $(BUILD)/Makefile.post
