diff options
Diffstat (limited to 'Examples/tcl/simple/Makefile')
-rw-r--r-- | Examples/tcl/simple/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Examples/tcl/simple/Makefile b/Examples/tcl/simple/Makefile new file mode 100644 index 000000000..afeb32c2f --- /dev/null +++ b/Examples/tcl/simple/Makefile @@ -0,0 +1,28 @@ +TOP = ../.. +SWIG = $(TOP)/../swig +SRCS = example.c +TARGET = my_tclsh +DLTARGET = example +INTERFACE = example.i + +all:: + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ + TARGET='$(DLTARGET)' INTERFACE='$(INTERFACE)' tcldl + +tcl8:: + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ + SWIGOPT='-tcl8' TARGET='$(DLTARGET)' INTERFACE='$(INTERFACE)' tcldl + +static:: + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ + TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' tclsh + +static8:: + $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ + SWIGOPT='-tcl8' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' tclsh + + +clean:: + rm -f *_wrap* *.o my_tclsh *~ .~* core *.so *.sl + + |