#
# makefile for treedo, Mike Lempriere (mikel@speakeasy.org) 27-Dec-94
# last mod 18-Dec-96 (works for DEC's Digital Unix 4.2, DECcxx compiler)
#
# use 'make' to build entirety.
# use 'make clean' to delete all the junk after a make.

.SUFFIXES: .cpp

CPP=cxx
BASE_CFLAGS=-c -w0 -std1 -warnprotos -readonly_strings -Dunix -I/usr/include/cxx -x cxx

#ifdef DEBUG
CFLAGS=$(BASE_CFLAGS) -g2 -DDEBUG
LDFLAGS=-o
#else
CFLAGS=$(BASE_CFLAGS)
LDFLAGS=-o
#endif


all: treedo


treedo: treedo.o
	$(CPP) $(LDFLAGS) $* $?


treedo.o: treedo.cpp
	$(CPP) $(CFLAGS) $?


clean:
	-rm *.o treedo
