#**********************************************************************
#
#     Copyright (C) 1992  Roland W. Freund and Noel M. Nachtigal
#     All rights reserved.
#
#     This code is part of a copyrighted package.  For details, see the
#     file `cpyrit.doc' in the top-level directory.
#
#     *****************************************************************
#     ANY USE OF  THIS CODE CONSTITUTES ACCEPTANCE OF  THE TERMS OF THE
#                             COPYRIGHT NOTICE
#     *****************************************************************
#
#**********************************************************************
#
#  This is the makefile that builds all the source code.
#

#
#  Default command.
#
.DEFAULT:
	@echo "Unknown target $@, try:  make help"

#
#  Default target is help.
#
help:
	@echo "usage:"
	@echo "   make all         - make everything"
	@echo "   make clean       - remove everything"

#
#  Make everything.
#
all:	force header.mak
	@(cd algs; $(MAKE) $(MFLAGS) lib; cd ..)
	@(cd csr;  $(MAKE) $(MFLAGS) lib; cd ..)
	@(cd libs; $(MAKE) $(MFLAGS) lib; cd ..)

#
#  Remove everything.
#
clean:	force header.mak
	@(cd algs; $(MAKE) $(MFLAGS) clean; cd ..)
	@(cd csr;  $(MAKE) $(MFLAGS) clean; cd ..)
	@(cd libs; $(MAKE) $(MFLAGS) clean; cd ..)
	@rm header.mak

#
#  Header file.
#
header.mak:	Setup
	@./Setup

#
#  Dummy target to ensure that the others are always made.
#
force:
