Tcl examples now run during 'make check' and makefile tidyup.

This commit is contained in:
William S Fulton 2013-04-13 23:33:19 +01:00
commit 3489d0db32
16 changed files with 96 additions and 74 deletions

View file

@ -5,18 +5,18 @@ TARGET = example
INTERFACE = example.i
LIBS = -lm
all:: Example.class
check: build
$(MAKE) -f $(TOP)/Makefile tcl_run
build: Example.class
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' CXX="gcj" \
TCL_CXXSHARED="gcj -fpic -shared Example.class " LIBS="-lstdc++" DEFS='' tcl_cpp
clean::
clean:
$(MAKE) -f $(TOP)/Makefile tcl_clean
rm -f *.class Example.h
check: all
run:
tclsh runme.tcl