Octave: use common example.mk for examples, patterned after javascript

This commit is contained in:
Karl Wette 2014-05-26 20:38:36 +02:00
commit b2d492c15a
17 changed files with 68 additions and 245 deletions

View file

@ -1,18 +1,7 @@
TOP = ../..
SWIG = $(TOP)/../preinst-swig
SRCS = example.c
TARGET = swigexample
INTERFACE = example.i
SRCS = example.c
TARGET = swigexample
SWIGOPT = -module swigexample
TARGET2 = swigexample2
SWIGOPT2 = -module swigexample2 -globals .
check: build
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' octave_run
build:
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' SWIGOPT='-module $$(TARGET)' INTERFACE='$(INTERFACE)' octave
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)2' SWIGOPT='-module $$(TARGET) -globals .' INTERFACE='$(INTERFACE)' octave
clean:
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' octave_clean
rm -f $(TARGET).m
include $(SRCDIR)../example.mk