ET_DIR  =   ../..
CCFLAGS =   +e2 -I$(ET_DIR)/src
CC      =   CC $(CCFLAGS)
LD      =   $(ET_DIR)/bin/etld
MAKEDEP =   $(ET_DIR)/bin/domakedep
MAKEHIER=   $(ET_DIR)/bin/makehier

#-------------------------------------------------------------------------------

OFILES  =   tree.o

all:    treeimages tree

tree:   $(ET_DIR)/src/et.o $(OFILES)
	$(LD) $(LDFLAGS) -o $@ $(OFILES)

treeimages:
	cd images; $(MAKE) all

depend:
	$(MAKEDEP) $(INCL) *.[chC] > deps

hier:
	$(MAKEHIER) > import

clean:
	cd images; $(MAKE) clean
	rm -f core *.o *..c

clobber:    clean
	cd images; $(MAKE) clobber
	rm -f tree

include deps 

