#
# Makefile for TREEDO, Mike Lempriere (mikel@oz.net) 27-Dec-94
# last mod 20-Apr-95
#
# use 'make' to build entirety.
# use 'make "DEBUG=1"' or 'SET DEBUG=1' then 'make' to make with debug
# use 'make clean' to delete all the junk after a make.
# edit a 'BORLAND=1' into the makefile, or use 'make "BORLAND=1"'
# if you're using Borland.

!ifdef BORLAND
CPP=bcc
CFLAGS=-wall+
LDFLAGS=
!else
# IBM CSET++...
CPP=icc
!ifdef DEBUG
CFLAGS=-q -Wall-cls -W3 -Ti -Tx
LDFLAGS=-q -B"/batch /pm:vio /DEBUG"
!else
CFLAGS=-q -Wall-cls -W3
LDFLAGS=-q -B"/batch /pm:vio"
!endif
!endif

# remove the "-Dos2" for DOS compile...
.cpp.obj:
	$(CPP) -c $(CFLAGS) -Dos2 $*.cpp

.obj.exe:
	$(CPP) $(LDFLAGS) $*.obj
	$(RC) $*.rc $*.exe


all: TreeDo.exe


TreeDo.obj: TreeDo.cpp

TreeDo.exe: TreeDo.obj


clean:
	-del *.obj *.exe *.res
