#
# Makefile for TREEDO, Mike Lempriere (mikel@speakeasy.org) 27-Dec-94
# last mod 24-Dec-96
#
# 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.

!if 0
# Microsoft C
CPP=cl
!ifdef DEBUG
CFLAGS=-DDOS
LDFLAGS=
!else
CFLAGS=-DDOS
LDFLAGS=
!endif
!else

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

.cpp.obj:
	$(CPP) -c $(CFLAGS) $*.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
