TOP        = .
SRCS       = mk4tcl.cpp scripted.cpp 
LIBS       = -lmk
DLTARGET   = mk4tcl
CFLAGS     = -fhandle-exceptions # -Wall

all: tclext

tclext:
	$(MAKE) -f $(TOP)/Makefile.template SRCS='$(SRCS)' LIBS='$(LIBS)' \
	CFLAGS='$(CFLAGS)' TARGET='$(DLTARGET)' INCLUDE='$(INCLUDE)' tcldl_cpp

test:
	tclsh demo.tcl
	
clean:
	rm -f *.o my_tclsh *~ .~* core *.so *.sl test.dat test.bak

distclean: clean
	rm -f Makefile.template config.h config.status config.log config.cache

