swig/Examples/tcl/pointer/Makefile

20 lines
479 B
Makefile

TOP = ../..
SWIG = $(TOP)/../preinst-swig
SRCS = example.c
TARGET = my_tclsh
DLTARGET = example
INTERFACE = example.i
check: build
$(MAKE) -f $(TOP)/Makefile tcl_run
build:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(DLTARGET)' INTERFACE='$(INTERFACE)' tcl
static:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' tclsh
clean:
$(MAKE) -f $(TOP)/Makefile tcl_clean