TOP        = ../../..
SWIG       = $(TOP)/swig
SRCS       = tree.c
TARGET1    = tree
TARGET2    = findfile
INTERFACE  = tree.i

all:	tree findfile

tree::
	$(MAKE) -f $(TOP)/Makefile.template SRCS='$(SRCS)' SWIG='$(SWIG)' \
	TARGET='$(TARGET1)' INTERFACE='$(INTERFACE)' tclsh

findfile::
	$(MAKE) -f $(TOP)/Makefile.template SRCS='$(SRCS)' SWIG='$(SWIG)' \
	SWIGOPT='-DFINDFILE' TARGET='$(TARGET2)' INTERFACE='$(INTERFACE)' wish

clean::
	rm -f *_wrap* *.o tree findfile *~
