Example makefile tidy up for Scilab
This commit is contained in:
parent
f9f1116e58
commit
37c411958e
1 changed files with 13 additions and 13 deletions
|
|
@ -1706,18 +1706,18 @@ SCILAB_LIB = @SCILABLIB@
|
||||||
SCILAB = @SCILAB@
|
SCILAB = @SCILAB@
|
||||||
SCILAB_OPT = @SCILABOPT@
|
SCILAB_OPT = @SCILABOPT@
|
||||||
|
|
||||||
# Returns the Swig Scilab command line args
|
# Returns the SWIG Scilab command line args
|
||||||
define get_swig_scilab_args
|
define get_swig_scilab_args
|
||||||
SWIG_SCILAB_ARGS := -scilab
|
SCILAB_SWIGOPT :=
|
||||||
ifdef SRCS
|
ifdef SRCS
|
||||||
SWIG_SCILAB_ARGS += -addsources "$(SRCDIR_SRCS)"
|
SCILAB_SWIGOPT += -addsources "$(SRCDIR_SRCS)"
|
||||||
endif
|
endif
|
||||||
ifdef INCLUDES
|
ifdef INCLUDES
|
||||||
SWIG_SCILAB_ARGS += -addcflags "-I$(abspath $(INCLUDES))"
|
SCILAB_SWIGOPT += -addcflags "-I$(abspath $(INCLUDES))"
|
||||||
endif
|
endif
|
||||||
ifdef SRCDIR
|
ifdef SRCDIR
|
||||||
SWIG_SCILAB_ARGS += -addcflags "-I$(abspath $(SRCDIR))"
|
SCILAB_SWIGOPT += -addcflags "-I$(abspath $(SRCDIR))"
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|
@ -1726,7 +1726,7 @@ endef
|
||||||
|
|
||||||
scilab: $(SRCDIR_SRCS)
|
scilab: $(SRCDIR_SRCS)
|
||||||
$(eval $(call get_swig_scilab_args))
|
$(eval $(call get_swig_scilab_args))
|
||||||
$(SWIG) $(SWIGOPT) $(SWIG_SCILAB_ARGS) $(INTERFACEPATH)
|
$(SWIG) -scilab $(SCILAB_SWIGOPT) $(SWIGOPT) $(INTERFACEPATH)
|
||||||
if [ -f builder.sce ]; then \
|
if [ -f builder.sce ]; then \
|
||||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH MAKEFLAGS="-j1" $(RUNTOOL) $(SCILAB) $(SCILAB_OPT) -e "exit(exec('builder.sce', 'errcatch', -1))"; \
|
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH MAKEFLAGS="-j1" $(RUNTOOL) $(SCILAB) $(SCILAB_OPT) -e "exit(exec('builder.sce', 'errcatch', -1))"; \
|
||||||
fi
|
fi
|
||||||
|
|
@ -1737,7 +1737,7 @@ scilab: $(SRCDIR_SRCS)
|
||||||
|
|
||||||
scilab_cpp: $(SRCDIR_SRCS)
|
scilab_cpp: $(SRCDIR_SRCS)
|
||||||
$(eval $(call get_swig_scilab_args))
|
$(eval $(call get_swig_scilab_args))
|
||||||
$(SWIG) $(SWIGOPT) -c++ $(SWIG_SCILAB_ARGS) $(INTERFACEPATH)
|
$(SWIG) -scilab -c++ $(SCILAB_SWIGOPT) $(SWIGOPT) $(INTERFACEPATH)
|
||||||
if [ -f builder.sce ]; then \
|
if [ -f builder.sce ]; then \
|
||||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH MAKEFLAGS="-j1" $(RUNTOOL) $(SCILAB) $(SCILAB_OPT) -e "exit(exec('builder.sce', 'errcatch', -1))"; \
|
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH MAKEFLAGS="-j1" $(RUNTOOL) $(SCILAB) $(SCILAB_OPT) -e "exit(exec('builder.sce', 'errcatch', -1))"; \
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue