#$Id: Makefile,v 19.25 2001/06/15 21:09:29 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++: nothing
	-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: nothing
	-mkdir O-DEBUG
	cat Make1 Make2.Debug Make3 Make.depend >O-DEBUG/Makefile
	(cd O-DEBUG; make -k)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Windows using Borland 5.5
borland: nothing
	-mkdir BORLAND
	copy Make1 + Make2.Borland + Make3 + Make.depend  BORLAND\Makefile.raw
	cd BORLAND
	sed 's/\\.o/.obj/g' <Makefile.raw >Makefile
	make
#-----------------------------------------------------------------------------
# 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: nothing
	-mkdir O-CC
	cat Make1 Make2.CC Make3 Make.depend >O-CC/Makefile
	(cd O-CC; make -k)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
linux: nothing
	-mkdir LINUX
	cat Make1 Make2.g++ Make3 Make.depend >LINUX/Makefile
	(cd LINUX; make -k)
#-----------------------------------------------------------------------------
netbsd: nothing
	-mkdir NETBSD
	cat Make1 Make2.g++ Make3 Make.depend >NETBSD/Makefile
	(cd NETBSD; make -k)
#-----------------------------------------------------------------------------
next: nothing
	-mkdir NEXT
	cat Make1 Make2.g++ Make3 Make.depend >NEXT/Makefile
	(cd NEXT; make -k)
#-----------------------------------------------------------------------------
sun4-g++: nothing
	-mkdir SUN4-G++
	cat Make1 Make2.g++ Make3 Make.depend >SUN4-G++/Makefile
	(cd SUN4-G++; make -k)
#-----------------------------------------------------------------------------
sun4-CC: nothing
	-mkdir SUN4-CC
	cat Make1 Make2.sun-CC Make3 Make.depend >SUN4-CC/Makefile
	(cd SUN4-CC; make -k)
#-----------------------------------------------------------------------------
freebsd: nothing
	-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: nothing
	-rm */*.o */*.obj */*.h */*.cc
#-----------------------------------------------------------------------------
nothing:
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
