#
# This is the master makefile.
# A "make" (or "make all") at this level will build everything.
# A "make clean" will remove all of the objects and binaries in the tree.
# A "make world" will do a clean then an all.
#

# First we include the general definitions
!include "gendefs"

# Folks, I know this is disgusting, but until Borland releases a make that
# understands loops, this is the only way to do it. :( - JRM 4/27/93

install : all

all: $(CCOPTFILE)
	cd src
	make all
	cd ..
	cd apps
	make all
	cd ..

clean:
	cd src
	make clean
	cd ..
	cd apps
	make clean
	cd ..
	del $(CCOPTFILE)

world: clean all

#
# I appologize to all for such cruftiness, but I couldn't think of
# any other way of dealing with both the ^%$%*&^ 128 character
# command line limit, and the need for paths to be dynamicly changed.
# JRM - 4/27/93
#
$(CCOPTFILE): gendefs makefile
	echo $(CFLAGS) > $(CCOPTFILE)
	echo $(INCLUDES) >> $(CCOPTFILE)
	echo $(DEFINES) >> $(CCOPTFILE)
