#$Id: Makefile,v 16.20 2000/02/04 09:48:28 al Exp $
#-----------------------------------------------------------------------------
# In most cases you can just type "make" to build it.
# Generally, you will want "make your-system".
# Look in this file for the choices.
# If yours is not here, look for a similar one and copy.
# The special configurations listed here allow you to do multiple builds
# from the same source directory, and patch some problems.
#-----------------------------------------------------------------------------
# The most common configuration is g++
# This should work if it is properly installed
# and has the proper libraries and headers.
# It is optimized for speed.  Debugging is off.
g++:
	-mkdir O
	cat Make1 Make2.g++ Make3 Make.depend >O/Makefile
	(cd O; make -k)
#-----------------------------------------------------------------------------
# This one makes a "debug" build ...
# Asserts and some tracing is turned on.
# It prints a trace when "untested" code is exercised.
# "Untested" means the regressions don't test it.
# It doesn't mean TOTALLY untested.
debug:
	-mkdir O-DEBUG
	cat Make1 Make2.Debug Make3 Make.depend >O-DEBUG/Makefile
	(cd O-DEBUG; make -k)
#-----------------------------------------------------------------------------
# This one does a "trace" build.
# Running the program produces a trace of its execution,
# which can be used for debugging or detailed testing.
# The trace output is HUGE.
trace:
	-mkdir O-TRACE
	cat Make1 Make2.Trace Make3 Make.depend >O-TRACE/Makefile
	(cd O-TRACE; make -k)
#-----------------------------------------------------------------------------
# If you don't have g++, try this one
# This is based on assumptions that you have a cfront based compiler called CC
# and there is nothing strange about your system
CC:
	-mkdir O-CC
	cat Make1 Make2.CC Make3 Make.depend >O-CC/Makefile
	(cd O-CC; make -k)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
linux:
	-mkdir LINUX
	cat Make1 Make2.g++ Make3 Make.depend >LINUX/Makefile
	(cd LINUX; make -k)
#-----------------------------------------------------------------------------
netbsd:
	-mkdir NETBSD
	cat Make1 Make2.g++ Make3 Make.depend >NETBSD/Makefile
	(cd NETBSD; make -k)
#-----------------------------------------------------------------------------
next:
	-mkdir NEXT
	cat Make1 Make2.g++ Make3 Make.depend >NEXT/Makefile
	(cd NEXT; make -k)
#-----------------------------------------------------------------------------
osf-g++:
	-mkdir OSF-G++
	cat Make1 Make2.g++ Make3 Make.depend >OSF-G++/Makefile
	(cd OSF-G++; make -k)
#-----------------------------------------------------------------------------
ultrix-g++:
	-mkdir ULTRIX-G++
	cat Make1 Make2.g++ Make3 Make.depend >ULTRIX-G++/Makefile
	-(cd ULTRIX-G++; make -k)
#-----------------------------------------------------------------------------
sun3-g++:
	-mkdir SUN3-G++
	cat Make1 Make2.g++ Make3 Make.depend >SUN3-G++/Makefile
	(cd SUN3-G++; make -k)
#-----------------------------------------------------------------------------
sun4-g++:
	-mkdir SUN4-G++
	cat Make1 Make2.g++ Make3 Make.depend >SUN4-G++/Makefile
	(cd SUN4-G++; make -k)
#-----------------------------------------------------------------------------
sun4-CC:
	-mkdir SUN4-CC
	cat Make1 Make2.sun-CC Make3 Make.depend >SUN4-CC/Makefile
	(cd SUN4-CC; make -k)
#-----------------------------------------------------------------------------
sgi-g++:
	-mkdir SGI-G++
	cat Make1 Make2.g++ Make3 Make.depend >SGI-G++/Makefile
	(cd SGI-G++; make -k)
#-----------------------------------------------------------------------------
sgi-NCC:
	-mkdir SGI-NCC
	cat Make1 Make2.sgi-NCC Make3 Make.depend >SGI-NCC/Makefile
	(cd SGI-NCC; make -k)
#-----------------------------------------------------------------------------
sgi-DCC:
	-mkdir SGI-DCC
	cat Make1 Make2.sgi-DCC Make3 Make.depend >SGI-DCC/Makefile
	(cd SGI-DCC; make -k)
#-----------------------------------------------------------------------------
hppa-g++:
	-mkdir HPPA-G++
	cat Make1 Make2.g++ Make3 Make.depend >HPPA-G++/Makefile
	(cd HPPA-G++; make -k)
#-----------------------------------------------------------------------------
freebsd:
	-mkdir FreeBSD
	cat Make1 Make2.g++ Make3 Make.depend >FreeBSD/Makefile
	(cd FreeBSD; make -k)
#-----------------------------------------------------------------------------
tags: nothing
	cat Make1 Make2.g++ Make3 >Make.aux
	(make tags -f Make.aux)
#-----------------------------------------------------------------------------
depend: nothing
	cat Make1 Make2.g++ Make3 >Make.aux
	make -f Make.aux depend
#-----------------------------------------------------------------------------
checkin: nothing
	cat Make1 Make2.g++ Make3 >Make.aux
	make -f Make.aux checkin
#-----------------------------------------------------------------------------
checkout: nothing
	cat Make1 Make2.g++ Make3 >Make.aux
	make -f Make.aux checkout
#-----------------------------------------------------------------------------
clean:
	-rm */*.o */*.obj */*.h */*.cc
#-----------------------------------------------------------------------------
nothing:
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
