- rename example modules from "example" to "swigexample", to avoid a warning from shadowing the Octave built-in function "example" - remove deprecated "static" Makefile targets: there is no longer an option to build static Octave modules in the Examples Makefile - emacs whitespace cleanup run on all files
17 lines
422 B
Makefile
17 lines
422 B
Makefile
TOP = ../..
|
|
SWIG = $(TOP)/../preinst-swig
|
|
CXXSRCS = example.cxx
|
|
TARGET = swigexample
|
|
INTERFACE = example.i
|
|
LIBS = -lm
|
|
SWIGOPT =
|
|
|
|
check: build
|
|
$(MAKE) -f $(TOP)/Makefile octave_run
|
|
|
|
build:
|
|
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' octave_cpp
|
|
|
|
clean:
|
|
$(MAKE) -f $(TOP)/Makefile octave_clean
|