Revert rev 11187 "Merged with recent changes from trunk."
This reverts commit c595e4d90ebfd63eb55430c735bb121cf690bd59. Conflicts: Source/Modules/c.cxx From: William S Fulton <wsf@fultondesigns.co.uk> git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@13033 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
34a628c7c7
commit
d6b81eb831
703 changed files with 9266 additions and 21128 deletions
|
|
@ -1,8 +1,8 @@
|
|||
This example runs the entire gifplot.h header file through SWIG without
|
||||
any changes. The program 'runme.java' does something a little more
|
||||
interesting. After doing a make, run it using 'java runme'. You'll have to go
|
||||
any changes. The program 'main.java' does something a little more
|
||||
interesting. After doing a make, run it using 'java main'. You'll have to go
|
||||
look at the header file to get a complete listing of the functions.
|
||||
|
||||
Note the differences in the runme.java files between this example and the
|
||||
Note the differences in the main.java files between this example and the
|
||||
'full' example. This example does not use shadow classes.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Plot a 3D function
|
||||
import java.lang.Math;
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../swig
|
||||
SWIGOPT = -outcurrentdir
|
||||
SWIGOPT = -I../../Interface
|
||||
SRCS =
|
||||
TARGET = gifplot
|
||||
INTERFACEDIR = ../../Interface/
|
||||
INTERFACE = gifplot.i
|
||||
LIBS = -L../.. -lgifplot
|
||||
INCLUDES = -I../../Include
|
||||
|
|
@ -11,7 +10,7 @@ INCLUDES = -I../../Include
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' INTERFACEDIR='$(INTERFACEDIR)' java
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' java
|
||||
javac *.java
|
||||
|
||||
clean::
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
This example uses the file in ../../Interface/gifplot.i to build
|
||||
an interface with shadow classes. After doing a make, run the program runme, ie: 'java runme'.
|
||||
an interface with shadow classes. After doing a make, run the program main, ie: 'java main'.
|
||||
|
||||
Note the differences in the runme.java files between this example and the
|
||||
Note the differences in the main.java files between this example and the
|
||||
'full' example. This example uses the shadow classes.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import java.lang.Math;
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
This is a very minimalistic example in which just a few functions
|
||||
and constants from library are wrapped and used to draw some simple
|
||||
shapes. After doing a make, run the java program, ie 'java runme'.
|
||||
shapes. After doing a make, run the java program, ie 'java main'.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -132,10 +132,7 @@ int ColorMap_write(ColorMap *cm, char *filename) {
|
|||
|
||||
f = fopen(filename,"w");
|
||||
|
||||
if (fwrite(cm->cmap,768,1,f) != 1) {
|
||||
fclose(f);
|
||||
return -1;
|
||||
}
|
||||
fwrite(cm->cmap,768,1,f);
|
||||
fclose(f);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ static int maxmaxcode = 1 << GP_BITS; /* NEVER generate this */
|
|||
|
||||
static count_int *htab;
|
||||
static unsigned short *codetab;
|
||||
static int GIFOutBufSize;
|
||||
static GIFOutBufSize;
|
||||
|
||||
/* static count_int htab [HSIZE];
|
||||
static unsigned short codetab [HSIZE]; */
|
||||
|
|
@ -656,11 +656,7 @@ int FrameBuffer_writeGIF(FrameBuffer *f, ColorMap *c, char *filename) {
|
|||
fclose(file);
|
||||
return -1;
|
||||
}
|
||||
if (fwrite(buffer,nbytes,1,file) != 1) {
|
||||
free(buffer);
|
||||
fclose(file);
|
||||
return -1;
|
||||
}
|
||||
fwrite(buffer,nbytes,1,file);
|
||||
fclose(file);
|
||||
free(buffer);
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../swig
|
||||
SWIGOPT = -outcurrentdir
|
||||
SWIGOPT = -I../../Interface
|
||||
SRCS =
|
||||
TARGET = gifplot
|
||||
INTERFACEDIR = ../../Interface/
|
||||
INTERFACE = gifplot.i
|
||||
LIBS = -L../.. -lgifplot -lm
|
||||
INCLUDES = -I../../Include
|
||||
|
|
@ -11,12 +10,12 @@ INCLUDES = -I../../Include
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' INTERFACEDIR='$(INTERFACEDIR)' perl5
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' perl5
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='myperl' INTERFACE='$(INTERFACE)' INTERFACEDIR='$(INTERFACEDIR)' perl5_static
|
||||
TARGET='myperl' INTERFACE='$(INTERFACE)' perl5_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile perl5_clean
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ INCLUDES = -I../../Include
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f *.gif
|
||||
rm -f php_gifplot.h
|
||||
|
||||
|
|
@ -10,10 +10,10 @@ INCLUDES = -I../../Include
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f *.gif
|
||||
|
||||
check: all
|
||||
|
|
@ -10,10 +10,10 @@ INCLUDES = -I../../Include
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f *.gif
|
||||
rm -f php_simple.h
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
SWIG = $(TOP)/../swig
|
||||
SWIGOPT = -I../../Include
|
||||
SRCS =
|
||||
TARGET = gifplot
|
||||
|
|
@ -23,4 +23,3 @@ clean::
|
|||
rm -f *.gif
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile python_run
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
SWIGOPT = -outcurrentdir
|
||||
SWIG = $(TOP)/../swig
|
||||
SWIGOPT = -I../../Interface
|
||||
SRCS =
|
||||
TARGET = gifplot
|
||||
INTERFACEDIR = ../../Interface/
|
||||
INTERFACE = gifplot.i
|
||||
LIBS = -L../.. -lgifplot
|
||||
INCLUDES = -I../../Include
|
||||
|
|
@ -11,12 +10,12 @@ INCLUDES = -I../../Include
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' INTERFACEDIR='$(INTERFACEDIR)' python
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='mypython' INTERFACE='$(INTERFACE)' INTERFACEDIR='$(INTERFACEDIR)' python_static
|
||||
TARGET='mypython' INTERFACE='$(INTERFACE)' python_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile python_clean
|
||||
|
|
@ -24,4 +23,3 @@ clean::
|
|||
rm -f *.gif
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile python_run
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
SWIG = $(TOP)/../swig
|
||||
SWIGOPT =
|
||||
SRCS =
|
||||
TARGET = simple
|
||||
|
|
@ -23,4 +23,3 @@ clean::
|
|||
rm -f *.gif
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile python_run
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
TOP = ../../..
|
||||
SWIG = $(TOP)/../swig
|
||||
SWIGOPT = -outcurrentdir
|
||||
SWIGOPT = -I../../Interface
|
||||
SRCS =
|
||||
TARGET = gifplot
|
||||
INTERFACEDIR = ../../Interface/
|
||||
INTERFACE = gifplot.i
|
||||
LIBS = -L../.. -lgifplot
|
||||
INCLUDES = -I../../Include
|
||||
|
|
@ -11,12 +10,12 @@ INCLUDES = -I../../Include
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' INTERFACEDIR='$(INTERFACEDIR)' ruby
|
||||
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' ruby
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
|
||||
TARGET='myruby' INTERFACE='$(INTERFACE)' INTERFACEDIR='$(INTERFACEDIR)' ruby_static
|
||||
TARGET='myruby' INTERFACE='$(INTERFACE)' ruby_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile ruby_clean
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@
|
|||
# certain packages have been installed. Set the prefixes
|
||||
# accordingly.
|
||||
#
|
||||
# 2. To use this makefile, set required varibles, eg SRCS, INTERFACE,
|
||||
# INTERFACEDIR, INCLUDES, LIBS, TARGET, and do a
|
||||
# 2. To use this makefile, simply set SRCS, INTERFACE, INCLUDES, LIBS,
|
||||
# TARGET, and do a
|
||||
# $(MAKE) -f Makefile.template.in SRCS='$(SRCS)' \
|
||||
# INCLUDES='$(INCLUDES) LIBS='$(LIBS)' INTERFACE='$(INTERFACE)' \
|
||||
# INTERFACEDIR='$(INTERFACEDIR)' TARGET='$(TARGET)' method
|
||||
# TARGET='$(TARGET)' method
|
||||
#
|
||||
# 'method' describes what is being built.
|
||||
#---------------------------------------------------------------
|
||||
|
|
@ -31,8 +31,6 @@ SRCS =
|
|||
INCLUDES =
|
||||
LIBS =
|
||||
INTERFACE =
|
||||
INTERFACEDIR =
|
||||
INTERFACEPATH = $(INTERFACEDIR)$(INTERFACE)
|
||||
SWIGOPT =
|
||||
SWIG = swig
|
||||
|
||||
|
|
@ -98,8 +96,6 @@ TK_OPTS = -ltk -ltcl @LIBS@
|
|||
# Extra Tcl specific dynamic linking options
|
||||
TCL_DLNK = @TCLDYNAMICLINKING@
|
||||
TCL_SO = @TCL_SO@
|
||||
TCLLDSHARED = @TCLLDSHARED@
|
||||
TCLCXXSHARED = @TCLCXXSHARED@
|
||||
|
||||
# -----------------------------------------------------------
|
||||
# Build a new version of the tclsh shell
|
||||
|
|
@ -107,12 +103,12 @@ TCLCXXSHARED = @TCLCXXSHARED@
|
|||
|
||||
|
||||
tclsh: $(SRCS)
|
||||
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) -ltclsh.i $(INTERFACEPATH)
|
||||
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) -ltclsh.i $(INTERFACE)
|
||||
$(CC) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(TCL_INCLUDE) \
|
||||
$(TCL_LIB) $(TCL_OPTS) $(LIBS) $(SYSLIBS) -o $(TARGET)
|
||||
|
||||
tclsh_cpp: $(SRCS)
|
||||
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) -ltclsh.i $(INTERFACEPATH)
|
||||
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) -ltclsh.i $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(TCL_INCLUDE) \
|
||||
$(TCL_LIB) $(TCL_OPTS) $(LIBS) $(SYSLIBS) -o $(TARGET)
|
||||
|
||||
|
|
@ -121,13 +117,13 @@ tclsh_cpp: $(SRCS)
|
|||
# -----------------------------------------------------------
|
||||
|
||||
wish: $(SRCS)
|
||||
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) -lwish.i $(INTERFACEPATH)
|
||||
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) -lwish.i $(INTERFACE)
|
||||
$(CC) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(TCL_INCLUDE) \
|
||||
$(XINCLUDE) $(TCL_LIB) $(TK_OPTS) $(XLIB) $(LIBS) $(SYSLIBS) -o $(TARGET)
|
||||
|
||||
|
||||
wish_cpp: $(SRCS)
|
||||
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) -lwish.i $(INTERFACEPATH)
|
||||
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) -lwish.i $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(TCL_INCLUDE) \
|
||||
$(XINCLUDE) $(TCL_LIB) $(TK_OPTS) $(XLIB) $(LIBS) $(SYSLIBS) -o $(TARGET)
|
||||
|
||||
|
|
@ -136,18 +132,18 @@ wish_cpp: $(SRCS)
|
|||
# -----------------------------------------------------------
|
||||
|
||||
tcl: $(SRCS)
|
||||
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACEPATH)
|
||||
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(TCL_INCLUDE)
|
||||
$(TCLLDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
|
||||
# -----------------------------------------------------------
|
||||
# Build a Tcl7.5 dynamic loadable module for C++
|
||||
# -----------------------------------------------------------
|
||||
|
||||
tcl_cpp: $(SRCS)
|
||||
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACEPATH)
|
||||
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(TCL_INCLUDE)
|
||||
$(TCLCXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(TCL_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(TCL_SO)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Cleaning the Tcl examples
|
||||
|
|
@ -177,7 +173,7 @@ PERL5_CCFLAGS = @PERL5CCFLAGS@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
perl5: $(SRCS)
|
||||
$(SWIG) -perl5 $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -perl5 $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c -Dbool=char $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PERL5_CCFLAGS) -I$(PERL5_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(PERL5_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -186,7 +182,7 @@ perl5: $(SRCS)
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
perl5_cpp: $(SRCS)
|
||||
$(SWIG) -perl5 -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -perl5 -c++ $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PERL5_CCFLAGS) -I$(PERL5_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(PERL5_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -204,11 +200,11 @@ perl5_xs: $(SRCS)
|
|||
PERL5_LIB = -L$(PERL5_INCLUDE) -l@PERL5LIB@ @LIBS@ $(SYSLIBS)
|
||||
|
||||
perl5_static: $(SRCS)
|
||||
$(SWIG) -perl5 -static -lperlmain.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -perl5 -static -lperlmain.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) $(CFLAGS) -Dbool=char $(SRCS) $(ISRCS) $(INCLUDES) -I$(PERL5_INCLUDE) $(PERL5_LIB) $(LIBS) -o $(TARGET)
|
||||
|
||||
perl5_static_cpp: $(SRCS)
|
||||
$(SWIG) -perl5 -c++ -static -lperlmain.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -perl5 -c++ -static -lperlmain.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) -I$(PERL5_INCLUDE) $(PERL5_LIB) $(LIBS) -o $(TARGET)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
|
|
@ -225,39 +221,19 @@ perl5_clean:
|
|||
##################################################################
|
||||
|
||||
# Make sure these locate your Python installation
|
||||
ifeq (,$(PY3))
|
||||
PYTHON_INCLUDE= $(DEFS) @PYINCLUDE@
|
||||
PYTHON_LIB = @PYLIB@
|
||||
PYTHON = @PYTHON@
|
||||
else
|
||||
PYTHON_INCLUDE= $(DEFS) @PY3INCLUDE@
|
||||
PYTHON_LIB = @PY3LIB@
|
||||
PYTHON = @PYTHON3@
|
||||
endif
|
||||
PYTHON_INCLUDE= $(DEFS) @PYINCLUDE@
|
||||
PYTHON_LIB = @PYLIB@
|
||||
|
||||
# Extra Python specific linking options
|
||||
ifeq (,$(PY3))
|
||||
PYTHON_DLNK = @PYTHONDYNAMICLINKING@
|
||||
PYTHON_LINK = @PYLINK@
|
||||
else
|
||||
PYTHON_DLNK = @PYTHON3DYNAMICLINKING@
|
||||
PYTHON_LINK = @PY3LINK@
|
||||
endif
|
||||
# Extra Python specific dynamic linking options
|
||||
PYTHON_DLNK = @PYTHONDYNAMICLINKING@
|
||||
PYTHON_SO = @PYTHON_SO@
|
||||
|
||||
# SWIG option for Python
|
||||
ifeq (,$(PY3))
|
||||
SWIGPYTHON = $(SWIG) -python
|
||||
else
|
||||
SWIGPYTHON = $(SWIG) -python -py3
|
||||
endif
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
# Build a C dynamically loadable module
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
python: $(SRCS)
|
||||
$(SWIGPYTHON) $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -python $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES) $(PYTHON_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(PYTHON_DLNK) $(LIBS) -o $(LIBPREFIX)_$(TARGET)$(PYTHON_SO)
|
||||
|
||||
|
|
@ -266,7 +242,7 @@ python: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
python_cpp: $(SRCS)
|
||||
$(SWIGPYTHON) -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -python $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) $(PYTHON_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(PYTHON_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)_$(TARGET)$(PYTHON_SO)
|
||||
|
||||
|
|
@ -279,37 +255,18 @@ python_cpp: $(SRCS)
|
|||
|
||||
#TKINTER = -L/usr/X11R6.3/lib -L/usr/local/compat/lib -ltk4.0 -ltcl7.4 -lX11
|
||||
TKINTER =
|
||||
PYTHON_LIBOPTS = $(PYTHON_LINK) @LIBS@ $(TKINTER) $(SYSLIBS)
|
||||
PYTHON_LIBOPTS = @PYLINK@ @LIBS@ $(TKINTER) $(SYSLIBS)
|
||||
|
||||
python_static: $(SRCS)
|
||||
$(SWIGPYTHON) -lembed.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -python -lembed.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) $(CFLAGS) @LINKFORSHARED@ $(ISRCS) $(SRCS) $(INCLUDES) \
|
||||
$(PYTHON_INCLUDE) $(LIBS) -L$(PYTHON_LIB) $(PYTHON_LIBOPTS) -o $(TARGET)
|
||||
|
||||
python_static_cpp: $(SRCS)
|
||||
$(SWIGPYTHON) -c++ -lembed.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -python -lembed.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) \
|
||||
$(PYTHON_INCLUDE) $(LIBS) -L$(PYTHON_LIB) $(PYTHON_LIBOPTS) -o $(TARGET)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Running a Python example
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
ifeq (,$(PY3))
|
||||
PYSCRIPT = runme.py
|
||||
else
|
||||
PYSCRIPT = runme3.py
|
||||
endif
|
||||
|
||||
PY2TO3 = 2to3 `2to3 -l | grep -v -E "Available|import$$" | awk '{print "-f "$$0}'`
|
||||
|
||||
python_run: $(PYSCRIPT)
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT) >/dev/null
|
||||
|
||||
runme3.py: runme.py
|
||||
cp $< $@
|
||||
$(PY2TO3) -w $@ >/dev/null 2>&1
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Cleaning the python examples
|
||||
# -----------------------------------------------------------------
|
||||
|
|
@ -318,8 +275,6 @@ python_clean:
|
|||
rm -f *_wrap* *~ .~* mypython@EXEEXT@ *.pyc
|
||||
rm -f core @EXTRA_CLEAN@
|
||||
rm -f *.@OBJEXT@ *@SO@ *@PYTHON_SO@
|
||||
if [ -f runme.py ]; then (rm -f runme3.py runme3.py.bak;) fi;
|
||||
|
||||
|
||||
##################################################################
|
||||
##### OCTAVE ######
|
||||
|
|
@ -338,7 +293,7 @@ OCTAVE_SO = @OCTAVE_SO@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
octave: $(SRCS)
|
||||
$(SWIG) -octave $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -octave $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -g -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(CXXSRCS) $(INCLUDES) -I$(OCTAVE_INCLUDE)
|
||||
$(CC) -g -c $(CCSHARED) $(CFLAGS) $(SRCS) $(INCLUDES) $(OCTAVE_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(OCTAVE_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(OCTAVE_SO)
|
||||
|
|
@ -348,7 +303,7 @@ octave: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
octave_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -octave $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -octave $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -g -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) -I$(OCTAVE_INCLUDE)
|
||||
$(CXXSHARED) -g $(CFLAGS) $(OBJS) $(IOBJS) $(OCTAVE_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(OCTAVE_SO)
|
||||
|
||||
|
|
@ -375,12 +330,12 @@ GUILE_LIBPREFIX = lib
|
|||
# Build a dynamically loaded module with passive linkage and the scm interface
|
||||
#------------------------------------------------------------------
|
||||
guile: $(SRCS)
|
||||
$(SWIG) -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(GUILE_LIBPREFIX)$(TARGET)$(GUILE_SO)
|
||||
|
||||
guile_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(GUILE_LIBPREFIX)$(TARGET)$(GUILE_SO)
|
||||
|
||||
|
|
@ -391,12 +346,12 @@ guile_externalhdr:
|
|||
# Build a dynamically loaded module with passive linkage and the gh interface
|
||||
#------------------------------------------------------------------
|
||||
guile_gh: $(SRCS)
|
||||
$(SWIG) -guile -gh -Linkage passive $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -guile -gh -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(GUILE_LIBPREFIX)$(TARGET)$(GUILE_SO)
|
||||
|
||||
guile_gh_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -guile -gh -Linkage passive $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -guile -gh -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(GUILE_LIBPREFIX)$(TARGET)$(GUILE_SO)
|
||||
|
||||
|
|
@ -405,12 +360,12 @@ guile_gh_cpp: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
guile_passive: $(SRCS)
|
||||
$(SWIG) -guile -Linkage passive $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -guile -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(GUILE_LIBPREFIX)$(TARGET)$(GUILE_SO)
|
||||
|
||||
guile_passive_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -guile -Linkage passive $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -guile -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(GUILE_LIBPREFIX)$(TARGET)$(GUILE_SO)
|
||||
|
||||
|
|
@ -421,24 +376,24 @@ guile_passive_cpp: $(SRCS)
|
|||
GUILE_LIBOPTS = @GUILELINK@ @LIBS@ $(SYSLIBS)
|
||||
|
||||
guile_static: $(SRCS)
|
||||
$(SWIG) -guile -lguilemain.i -Linkage ltdlmod $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -guile -lguilemain.i -Linkage ltdlmod $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES) \
|
||||
-DSWIGINIT="SCM scm_init_$(TARGET)_module(void); scm_init_$(TARGET)_module();" \
|
||||
$(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
|
||||
|
||||
guile_static_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -guile -lguilemain.i -Linkage ltdlmod $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -guile -lguilemain.i -Linkage ltdlmod $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) \
|
||||
-DSWIGINIT="SCM scm_init_$(TARGET)_module(void); scm_init_$(TARGET)_module();" \
|
||||
$(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
|
||||
|
||||
guile_simple: $(SRCS)
|
||||
$(SWIG) -guile -lguilemain.i -Linkage simple $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -guile -lguilemain.i -Linkage simple $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES) \
|
||||
$(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
|
||||
|
||||
guile_simple_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -guile -lguilemain.i -Linkage simple $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -guile -lguilemain.i -Linkage simple $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) \
|
||||
$(GUILE_INCLUDE) $(LIBS) -L$(GUILE_LIB) $(GUILE_LIBOPTS) -o $(TARGET)-guile
|
||||
|
||||
|
|
@ -473,7 +428,7 @@ JAVACFLAGS = @JAVACFLAGS@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
java: $(SRCS)
|
||||
$(SWIG) -java $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -java $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(JAVACFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(JAVA_INCLUDE)
|
||||
$(JAVALDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(JAVA_DLNK) $(LIBS) -o $(JAVA_LIBPREFIX)$(TARGET)$(JAVASO)
|
||||
|
||||
|
|
@ -482,7 +437,7 @@ java: $(SRCS)
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
java_cpp: $(SRCS)
|
||||
$(SWIG) -java -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -java -c++ $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(JAVACFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(JAVA_INCLUDE)
|
||||
$(JAVACXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(JAVA_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(JAVA_LIBPREFIX)$(TARGET)$(JAVASO)
|
||||
|
||||
|
|
@ -491,7 +446,7 @@ java_cpp: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
java_clean:
|
||||
rm -f *_wrap* *~ .~* *.class `find . -name \*.java | grep -v runme.java`
|
||||
rm -f *_wrap* *~ .~* *.class `find . -name \*.java | grep -v main.java`
|
||||
rm -f core @EXTRA_CLEAN@
|
||||
rm -f *.@OBJEXT@ *@JAVASO@
|
||||
|
||||
|
|
@ -506,12 +461,12 @@ MODULA3_INCLUDE= @MODULA3INC@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
modula3: $(SRCS)
|
||||
$(SWIG) -modula3 $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -modula3 $(SWIGOPT) $(INTERFACE)
|
||||
# $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) \
|
||||
# $(OBJS) $(IOBJS) $(LIBS)
|
||||
|
||||
modula3_cpp: $(SRCS)
|
||||
$(SWIG) -modula3 -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -modula3 -c++ $(SWIGOPT) $(INTERFACE)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Cleaning the modula3 examples
|
||||
|
|
@ -526,7 +481,7 @@ modula3_clean:
|
|||
##### MZSCHEME ######
|
||||
##################################################################
|
||||
|
||||
MZC = @MZC@
|
||||
MZC = test -n "@MZC@" && @MZC@
|
||||
MZDYNOBJ = @MZDYNOBJ@
|
||||
MZSCHEME_SO = @MZSCHEME_SO@
|
||||
|
||||
|
|
@ -535,13 +490,13 @@ MZSCHEME_SO = @MZSCHEME_SO@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
mzscheme: $(SRCS)
|
||||
$(SWIG) -mzscheme $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(COMPILETOOL) $(MZC) `echo $(INCLUDES) | sed 's/-I/++ccf -I/g'` --cc $(ISRCS) $(SRCS)
|
||||
$(COMPILETOOL) $(MZC) --ld $(TARGET)$(MZSCHEME_SO) $(OBJS) $(IOBJS)
|
||||
$(SWIG) -mzscheme $(SWIGOPT) $(INTERFACE)
|
||||
$(MZC) `echo $(INCLUDES) | sed 's/-I/++ccf -I/g'` --cc $(ISRCS) $(SRCS)
|
||||
$(MZC) --ld $(TARGET)$(MZSCHEME_SO) $(OBJS) $(IOBJS)
|
||||
|
||||
mzscheme_cpp: $(SRCS)
|
||||
$(SWIG) -mzscheme -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(COMPILETOOL) $(MZC) `echo $(INCLUDES) | sed 's/-I/++ccf -I/g'` --cc $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(SWIG) -mzscheme -c++ $(SWIGOPT) $(INTERFACE)
|
||||
$(MZC) `echo $(INCLUDES) | sed 's/-I/++ccf -I/g'` --cc $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(CXXSHARED) $(CFLAGS) -o $(LIBPREFIX)$(TARGET)$(MZSCHEME_SO) $(OBJS) $(IOBJS) $(MZDYNOBJ) $(CPP_DLLIBS)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
|
|
@ -563,7 +518,6 @@ OCAMLFIND=@OCAMLFIND@
|
|||
OCAMLMKTOP=@OCAMLMKTOP@ $(SWIGWHERE)
|
||||
NOLINK ?= false
|
||||
OCAMLPP= -pp "camlp4o ./swigp4.cmo"
|
||||
OCAMLP4WHERE=`$(COMPILETOOL) camlp4 -where`
|
||||
OCAMLCORE=\
|
||||
rm -rf swig.mli swig.ml swigp4.ml && \
|
||||
$(SWIG) -ocaml -co swig.mli 2>/dev/null && \
|
||||
|
|
@ -571,12 +525,12 @@ OCAMLCORE=\
|
|||
$(SWIG) -ocaml -co swigp4.ml 2>/dev/null && \
|
||||
$(OCC) -c swig.mli && \
|
||||
$(OCC) -c swig.ml && \
|
||||
$(OCC) -I $(OCAMLP4WHERE) -pp "camlp4o pa_extend.cmo q_MLast.cmo" \
|
||||
$(OCC) -I `camlp4 -where` -pp "camlp4o pa_extend.cmo q_MLast.cmo" \
|
||||
-c swigp4.ml
|
||||
|
||||
ocaml_static: $(SRCS)
|
||||
$(OCAMLCORE)
|
||||
$(SWIG) -ocaml $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ocaml $(SWIGOPT) $(INTERFACE)
|
||||
$(OCC) -g -c -ccopt -g -ccopt "$(INCLUDES)" $(ISRCS) $(SRCS)
|
||||
$(OCC) -g -c $(INTERFACE:%.i=%.mli)
|
||||
$(OCC) -g -c $(INTERFACE:%.i=%.ml)
|
||||
|
|
@ -590,7 +544,7 @@ ocaml_static: $(SRCS)
|
|||
|
||||
ocaml_dynamic: $(SRCS)
|
||||
$(OCAMLCORE)
|
||||
$(SWIG) -ocaml $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ocaml $(SWIGOPT) $(INTERFACE)
|
||||
$(OCC) -g -c -ccopt -g -ccopt "$(INCLUDES)" $(ISRCS) $(SRCS)
|
||||
$(CXXSHARED) $(CFLAGS) $(CCSHARED) $(CFLAGS) -o $(INTERFACE:%.i=%@SO@) \
|
||||
$(INTERFACE:%.i=%_wrap.@OBJEXT@) $(OBJS) $(LIBS)
|
||||
|
|
@ -609,7 +563,7 @@ ocaml_dynamic: $(SRCS)
|
|||
|
||||
ocaml_static_toplevel: $(SRCS)
|
||||
$(OCAMLCORE)
|
||||
$(SWIG) -ocaml $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ocaml $(SWIGOPT) $(INTERFACE)
|
||||
$(OCC) -g -c -ccopt -g -ccopt "$(INCLUDES)" $(ISRCS) $(SRCS)
|
||||
$(OCC) -g -c $(INTERFACE:%.i=%.mli)
|
||||
$(OCC) -g -c $(INTERFACE:%.i=%.ml)
|
||||
|
|
@ -617,14 +571,14 @@ ocaml_static_toplevel: $(SRCS)
|
|||
$(OCC) $(OCAMLPP) -c $(PROGFILE)
|
||||
$(NOLINK) || $(OCAMLMKTOP) \
|
||||
swig.cmo \
|
||||
-I $(OCAMLP4WHERE) camlp4o.cma swigp4.cmo \
|
||||
-I `camlp4 -where` camlp4o.cma swigp4.cmo \
|
||||
-g -ccopt -g -cclib -g -custom -o $(TARGET)_top \
|
||||
$(INTERFACE:%.i=%.cmo) \
|
||||
$(INTERFACE:%.i=%_wrap.@OBJEXT@) $(OBJS) -cclib "$(LIBS)"
|
||||
|
||||
ocaml_static_cpp: $(SRCS)
|
||||
$(OCAMLCORE)
|
||||
$(SWIG) -ocaml -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ocaml -c++ $(SWIGOPT) $(INTERFACE)
|
||||
cp $(ICXXSRCS) $(ICXXSRCS:%.cxx=%.c)
|
||||
$(OCC) -cc '$(CXX)' -g -c -ccopt -g -ccopt "-xc++ $(INCLUDES)" \
|
||||
$(ICXXSRCS:%.cxx=%.c) $(SRCS) $(CXXSRCS)
|
||||
|
|
@ -641,7 +595,7 @@ ocaml_static_cpp: $(SRCS)
|
|||
|
||||
ocaml_static_cpp_toplevel: $(SRCS)
|
||||
$(OCAMLCORE)
|
||||
$(SWIG) -ocaml -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ocaml -c++ $(SWIGOPT) $(INTERFACE)
|
||||
cp $(ICXXSRCS) $(ICXXSRCS:%.cxx=%.c)
|
||||
$(OCC) -cc '$(CXX)' -g -c -ccopt -g -ccopt "-xc++ $(INCLUDES)" \
|
||||
$(ICXXSRCS:%.cxx=%.c) $(SRCS) $(CXXSRCS)
|
||||
|
|
@ -651,7 +605,7 @@ ocaml_static_cpp_toplevel: $(SRCS)
|
|||
$(OCC) $(OCAMLPP) -c $(PROGFILE)
|
||||
$(NOLINK) || $(OCAMLMKTOP) \
|
||||
swig.cmo \
|
||||
-I $(OCAMLP4WHERE) camlp4o.cma swigp4.cmo \
|
||||
-I `camlp4 -where` camlp4o.cma swigp4.cmo \
|
||||
-g -ccopt -g -cclib -g -custom -o $(TARGET)_top \
|
||||
$(INTERFACE:%.i=%.cmo) \
|
||||
$(INTERFACE:%.i=%_wrap.@OBJEXT@) $(OBJS) \
|
||||
|
|
@ -659,7 +613,7 @@ ocaml_static_cpp_toplevel: $(SRCS)
|
|||
|
||||
ocaml_dynamic_cpp: $(SRCS)
|
||||
$(OCAMLCORE)
|
||||
$(SWIG) -ocaml -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ocaml -c++ $(SWIGOPT) $(INTERFACE)
|
||||
cp $(ICXXSRCS) $(ICXXSRCS:%.cxx=%.c)
|
||||
$(OCC) -cc '$(CXX)' -g -c -ccopt -g -ccopt "-xc++ $(INCLUDES)" \
|
||||
$(ICXXSRCS:%.cxx=%.c) $(SRCS) $(CXXSRCS) -ccopt -fPIC
|
||||
|
|
@ -700,7 +654,7 @@ RUBY_DLNK = @RUBYDYNAMICLINKING@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
ruby: $(SRCS)
|
||||
$(SWIG) -ruby $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ruby $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(RUBY_CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES) $(RUBY_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(RUBY_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -709,7 +663,7 @@ ruby: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
ruby_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -ruby $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -ruby $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(RUBY_CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) $(RUBY_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(RUBY_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -723,12 +677,12 @@ ruby_cpp: $(SRCS)
|
|||
RUBY_LIBOPTS = @RUBYLINK@ @LIBS@ $(SYSLIBS)
|
||||
|
||||
ruby_static: $(SRCS)
|
||||
$(SWIG) -ruby -lembed.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -ruby -lembed.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) $(CFLAGS) $(RUBY_CFLAGS) @LINKFORSHARED@ $(ISRCS) $(SRCS) $(INCLUDES) \
|
||||
$(RUBY_INCLUDE) $(LIBS) -L$(RUBY_LIB) $(RUBY_LIBOPTS) -o $(TARGET)
|
||||
|
||||
ruby_cpp_static: $(SRCS)
|
||||
$(SWIG) -c++ -ruby -lembed.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -ruby -lembed.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(RUBY_CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) \
|
||||
$(RUBY_INCLUDE) $(LIBS) -L$(RUBY_LIB) $(RUBY_LIBOPTS) -o $(TARGET)
|
||||
|
||||
|
|
@ -747,41 +701,41 @@ ruby_clean:
|
|||
##################################################################
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Build a PHP dynamically loadable module (C)
|
||||
# Build a PHP4 dynamically loadable module (C)
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
PHP_INCLUDE = @PHPINC@
|
||||
PHP_SO = @PHP_SO@
|
||||
PHP4_INCLUDE = @PHP4INC@
|
||||
PHP4_SO = @PHP4_SO@
|
||||
|
||||
php: $(SRCS)
|
||||
$(SWIG) -php $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO)
|
||||
php4: $(SRCS)
|
||||
$(SWIG) -php5 $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP4_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO)
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# Build a PHP dynamically loadable module (C++)
|
||||
# Build a PHP4 dynamically loadable module (C++)
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
php_cpp: $(SRCS)
|
||||
$(SWIG) -php -cppext cxx -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO)
|
||||
php4_cpp: $(SRCS)
|
||||
$(SWIG) -php5 -cppext cxx -c++ $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP4_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Running a PHP example
|
||||
# Running a PHP4 example
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
PHP=@PHP@
|
||||
PHPSCRIPT ?= runme.php
|
||||
PHP4=@PHP4@
|
||||
SCRIPT ?= runme.php4
|
||||
|
||||
php_run:
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP) -n -q -d extension_dir=. -d safe_mode=Off $(PHPSCRIPT)
|
||||
php4_run:
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP4) -n -q -d extension_dir=. $(SCRIPT)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Cleaning the PHP examples
|
||||
# Cleaning the PHP4 examples
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
php_clean:
|
||||
php4_clean:
|
||||
rm -f *_wrap* *~ .~* example.php php_example.h
|
||||
rm -f core @EXTRA_CLEAN@
|
||||
rm -f *.@OBJEXT@ *@SO@
|
||||
|
|
@ -801,7 +755,7 @@ PIKE_DLNK = @PIKEDYNAMICLINKING@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
pike: $(SRCS)
|
||||
$(SWIG) -pike $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -pike $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(PIKE_CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES) $(PIKE_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(PIKE_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -810,7 +764,7 @@ pike: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
pike_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -pike $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -pike $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(PIKE_CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) $(PIKE_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(PIKE_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -824,12 +778,12 @@ pike_cpp: $(SRCS)
|
|||
PIKE_LIBOPTS = @PIKELINK@ @LIBS@ $(SYSLIBS)
|
||||
|
||||
pike_static: $(SRCS)
|
||||
$(SWIG) -pike -lembed.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -pike -lembed.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) $(CFLAGS) $(PIKE_CFLAGS) @LINKFORSHARED@ $(ISRCS) $(SRCS) $(INCLUDES) \
|
||||
$(PIKE_INCLUDE) $(LIBS) -L$(PIKE_LIB) $(PIKE_LIBOPTS) -o $(TARGET)
|
||||
|
||||
pike_cpp_static: $(SRCS)
|
||||
$(SWIG) -c++ -pike -lembed.i $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -pike -lembed.i $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(PIKE_CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) \
|
||||
$(PIKE_INCLUDE) $(LIBS) -L$(PIKE_LIB) $(PIKE_LIBOPTS) -o $(TARGET)
|
||||
|
||||
|
|
@ -871,7 +825,7 @@ CHICKEN_COMPILED_MAIN_OBJECT = $(CHICKEN_COMPILED_MAIN:.c=.@OBJEXT@)
|
|||
|
||||
# This is the old way to build chicken, but it does not work correctly with exceptions
|
||||
chicken_direct: $(SRCS)
|
||||
$(SWIG) -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACEPATH)
|
||||
$(SWIG) -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACE)
|
||||
$(CHICKEN) $(CHICKEN_GENERATED_SCHEME) $(CHICKENOPTS) \
|
||||
-dynamic -feature chicken-compile-shared \
|
||||
-output-file $(CHICKEN_COMPILED_SCHEME)
|
||||
|
|
@ -881,7 +835,7 @@ chicken_direct: $(SRCS)
|
|||
$(LIBS) $(CHICKEN_SHAREDLIBOPTS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
chicken_direct_cpp: $(CXXSRCS) $(CHICKSRCS)
|
||||
$(SWIG) -c++ -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACE)
|
||||
$(CHICKEN) $(CHICKEN_GENERATED_SCHEME) $(CHICKENOPTS) \
|
||||
-dynamic -feature chicken-compile-shared \
|
||||
-output-file $(CHICKEN_COMPILED_SCHEME)
|
||||
|
|
@ -896,7 +850,7 @@ chicken_direct_cpp: $(CXXSRCS) $(CHICKSRCS)
|
|||
|
||||
# The following two targets are also used by the test suite
|
||||
chicken_static: $(SRCS) $(CHICKSRCS)
|
||||
$(SWIG) -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACEPATH)
|
||||
$(SWIG) -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACE)
|
||||
$(CHICKEN) $(CHICKEN_GENERATED_SCHEME) $(CHICKENOPTS) \
|
||||
-output-file $(CHICKEN_COMPILED_SCHEME)
|
||||
$(CHICKEN) $(CHICKEN_MAIN) $(CHICKENOPTS) \
|
||||
|
|
@ -908,7 +862,7 @@ chicken_static: $(SRCS) $(CHICKSRCS)
|
|||
$(OBJS) $(IOBJS) $(LIBS) $(CHICKEN_SHAREDLIBOPTS) -o $(TARGET)
|
||||
|
||||
chicken_static_cpp: $(CXXSRCS) $(CHICKSRCS)
|
||||
$(SWIG) -c++ -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACE)
|
||||
$(CHICKEN) $(CHICKEN_GENERATED_SCHEME) $(CHICKENOPTS) \
|
||||
-output-file $(CHICKEN_COMPILED_SCHEME)
|
||||
$(CHICKEN) $(CHICKEN_MAIN) $(CHICKENOPTS) \
|
||||
|
|
@ -924,11 +878,11 @@ chicken_static_cpp: $(CXXSRCS) $(CHICKSRCS)
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
chicken:
|
||||
$(SWIG) -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACEPATH)
|
||||
$(SWIG) -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACE)
|
||||
$(COMPILETOOL) $(CHICKEN_CSC) -s `echo $(INCLUDES) | sed 's/-I/-C -I/g'` $(CHICKEN_GENERATED_SCHEME) $(SRCS) $(ISRCS) -o $(TARGET)$(SO)
|
||||
|
||||
chicken_cpp:
|
||||
$(SWIG) -c++ -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -chicken $(SWIGOPT) $(INCLUDE) $(INTERFACE)
|
||||
$(COMPILETOOL) $(CHICKEN_CSC) -s `echo $(INCLUDES) | sed 's/-I/-C -I/g'` $(CHICKEN_GENERATED_SCHEME) $(SRCS) $(ICXXSRCS) $(CXXSRCS) -o $(TARGET)$(SO)
|
||||
|
||||
chicken_externalhdr:
|
||||
|
|
@ -956,7 +910,7 @@ CSHARPSO = @CSHARPSO@
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
csharp: $(SRCS)
|
||||
$(SWIG) -csharp $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -csharp $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(CSHARPCFLAGS) $(SRCS) $(ISRCS) $(INCLUDES)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(CSHARP_DLNK) $(LIBS) -o $(CSHARP_LIBPREFIX)$(TARGET)$(CSHARPSO)
|
||||
|
||||
|
|
@ -965,7 +919,7 @@ csharp: $(SRCS)
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
csharp_cpp: $(SRCS)
|
||||
$(SWIG) -csharp -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -csharp -c++ $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(CSHARPCFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(CSHARP_DLNK) $(LIBS) $(CPP_DLLIBS) -o $(CSHARP_LIBPREFIX)$(TARGET)$(CSHARPSO)
|
||||
|
||||
|
|
@ -1005,7 +959,7 @@ LUA_INTERP = ../lua.c
|
|||
# ----------------------------------------------------------------
|
||||
|
||||
lua: $(SRCS)
|
||||
$(SWIG) -lua $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -lua $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES) $(LUA_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(LUA_LIB) -o $(LIBPREFIX)$(TARGET)$(LUA_SO)
|
||||
|
||||
|
|
@ -1014,7 +968,7 @@ lua: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
lua_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -lua $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -lua $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES) $(LUA_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(LUA_LIB) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(LUA_SO)
|
||||
|
||||
|
|
@ -1023,12 +977,12 @@ lua_cpp: $(SRCS)
|
|||
# -----------------------------------------------------------------
|
||||
|
||||
lua_static: $(SRCS)
|
||||
$(SWIG) -lua -module example $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -lua -module example $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) $(CFLAGS) $(ISRCS) $(SRCS) $(LUA_INTERP) $(INCLUDES) \
|
||||
$(LUA_INCLUDE) $(LIBS) $(LUA_LIB) -o $(TARGET)
|
||||
|
||||
lua_static_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -lua -module example $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -lua -module example $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(LUA_INTERP) $(INCLUDES) \
|
||||
$(LUA_INCLUDE) $(LIBS) $(LUA_LIB) -o $(TARGET)
|
||||
|
||||
|
|
@ -1046,12 +1000,12 @@ lua_clean:
|
|||
##################################################################
|
||||
|
||||
allegrocl: $(SRCS)
|
||||
$(SWIG) -allegrocl -cwrap $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -allegrocl -cwrap $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(INCLUDES) $(SRCS)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
allegrocl_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -allegrocl $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -allegrocl $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -1065,10 +1019,10 @@ allegrocl_clean:
|
|||
##################################################################
|
||||
|
||||
clisp: $(SRCS)
|
||||
$(SWIG) -clisp $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -clisp $(SWIGOPT) $(INTERFACE)
|
||||
|
||||
clisp_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -clisp $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -clisp $(SWIGOPT) $(INTERFACE)
|
||||
|
||||
clisp_clean:
|
||||
rm -f *_wrap* *~ .~*
|
||||
|
|
@ -1080,12 +1034,12 @@ clisp_clean:
|
|||
##################################################################
|
||||
|
||||
cffi: $(SRCS)
|
||||
$(SWIG) -cffi $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -cffi $(SWIGOPT) $(INTERFACE)
|
||||
# $(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(INCLUDES) $(SRCS)
|
||||
# $(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
cffi_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -cffi $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -cffi $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -1099,12 +1053,12 @@ cffi_clean:
|
|||
##################################################################
|
||||
|
||||
uffi: $(SRCS)
|
||||
$(SWIG) -uffi $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -uffi $(SWIGOPT) $(INTERFACE)
|
||||
# $(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(INCLUDES) $(SRCS)
|
||||
# $(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
uffi_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -uffi $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -uffi $(SWIGOPT) $(INTERFACE)
|
||||
# $(CXX) -c $(CCSHARED) $(CFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES)
|
||||
# $(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
|
||||
|
||||
|
|
@ -1122,11 +1076,11 @@ RCXXSRCS = $(INTERFACE:.i=_wrap.cpp) #Need to use _wrap.cpp for R build system a
|
|||
RRSRC = $(INTERFACE:.i=.R)
|
||||
|
||||
r: $(SRCS)
|
||||
$(SWIG) -r $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -r $(SWIGOPT) $(INTERFACE)
|
||||
+( PKG_LIBS="$(SRCS)" PKG_CPPFLAGS="$(INCLUDES)" $(COMPILETOOL) $(R) CMD SHLIB -o $(LIBPREFIX)$(TARGET)$(SO) $(ISRCS) )
|
||||
|
||||
r_cpp: $(CXXSRCS)
|
||||
$(SWIG) -c++ -r $(SWIGOPT) -o $(RCXXSRCS) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -r $(SWIGOPT) -o $(RCXXSRCS) $(INTERFACE)
|
||||
+( PKG_LIBS="$(CXXSRCS)" PKG_CPPFLAGS="$(INCLUDES)" $(COMPILETOOL) $(R) CMD SHLIB -o $(LIBPREFIX)$(TARGET)$(SO) $(RCXXSRCS) )
|
||||
|
||||
r_clean:
|
||||
|
|
@ -1149,12 +1103,12 @@ CXX_LDSHARED = @CXX_LDSHARED@
|
|||
C_SO = @C_SO@
|
||||
|
||||
c: $(SRCS)
|
||||
$(SWIG) -c $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES)
|
||||
$(C_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
|
||||
c_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -c $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(SWIG) -c++ -c $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CXXFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES)
|
||||
$(CXX_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
SRCS = example.c
|
||||
TARGET = example
|
||||
INTERFACE = example.i
|
||||
SWIGOPT =
|
||||
CSHARPSRCS = *.cs
|
||||
CSHARPFLAGS= -nologo -unsafe -out:runme.exe
|
||||
|
||||
all:: csharp
|
||||
|
||||
csharp::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' csharp
|
||||
$(MAKE) -f $(TOP)/Makefile CSHARPSRCS='$(CSHARPSRCS)' CSHARPFLAGS='$(CSHARPFLAGS)' csharp_compile
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile csharp_clean
|
||||
|
||||
check: all
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
/* File : example.c */
|
||||
|
||||
#include "example.h"
|
||||
|
||||
/* copy the contents of the first array to the second */
|
||||
void myArrayCopy( int* sourceArray, int* targetArray, int nitems ) {
|
||||
int i;
|
||||
for ( i = 0; i < nitems; i++ ) {
|
||||
targetArray[ i ] = sourceArray[ i ];
|
||||
}
|
||||
}
|
||||
|
||||
/* swap the contents of the two arrays */
|
||||
void myArraySwap( int* array1, int* array2, int nitems ) {
|
||||
int i, temp;
|
||||
for ( i = 0; i < nitems; i++ ) {
|
||||
temp = array1[ i ];
|
||||
array1[ i ] = array2[ i ];
|
||||
array2[ i ] = temp;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
|
||||
void myArrayCopy( int *sourceArray, int* targetArray, int nitems );
|
||||
void myArraySwap( int* array1, int* array2, int nitems );
|
||||
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
/* File : example.i */
|
||||
%module example
|
||||
|
||||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
%include "arrays_csharp.i"
|
||||
|
||||
%apply int INPUT[] { int* sourceArray }
|
||||
%apply int OUTPUT[] { int* targetArray }
|
||||
|
||||
%apply int INOUT[] { int* array1 }
|
||||
%apply int INOUT[] { int* array2 }
|
||||
|
||||
%include "example.h"
|
||||
|
||||
%clear int* sourceArray;
|
||||
%clear int* targetArray;
|
||||
|
||||
%clear int* array1;
|
||||
%clear int* array2;
|
||||
|
||||
|
||||
// Below replicates the above array handling but this time using the pinned (fixed) array typemaps
|
||||
%csmethodmodifiers "public unsafe";
|
||||
|
||||
%apply int FIXED[] { int* sourceArray }
|
||||
%apply int FIXED[] { int* targetArray }
|
||||
|
||||
%inline %{
|
||||
void myArrayCopyUsingFixedArrays( int *sourceArray, int* targetArray, int nitems ) {
|
||||
myArrayCopy(sourceArray, targetArray, nitems);
|
||||
}
|
||||
%}
|
||||
|
||||
%apply int FIXED[] { int* array1 }
|
||||
%apply int FIXED[] { int* array2 }
|
||||
|
||||
%inline %{
|
||||
void myArraySwapUsingFixedArrays( int* array1, int* array2, int nitems ) {
|
||||
myArraySwap(array1, array2, nitems);
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
using System;
|
||||
|
||||
public class runme
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
int[] source = { 1, 2, 3 };
|
||||
int[] target = new int[ source.Length ];
|
||||
|
||||
example.myArrayCopy( source, target, target.Length );
|
||||
|
||||
Console.WriteLine( "Contents of copy target array using default marshaling" );
|
||||
PrintArray( target );
|
||||
|
||||
target = new int[ source.Length ];
|
||||
|
||||
example.myArrayCopyUsingFixedArrays( source, target, target.Length );
|
||||
Console.WriteLine( "Contents of copy target array using fixed arrays" );
|
||||
PrintArray( target );
|
||||
|
||||
target = new int[] { 4, 5, 6 };
|
||||
example.myArraySwap( source, target, target.Length );
|
||||
Console.WriteLine( "Contents of arrays after swapping using default marshaling" );
|
||||
PrintArray( source );
|
||||
PrintArray( target );
|
||||
|
||||
source = new int[] { 1, 2, 3 };
|
||||
target = new int[] { 4, 5, 6 };
|
||||
|
||||
example.myArraySwapUsingFixedArrays( source, target, target.Length );
|
||||
Console.WriteLine( "Contents of arrays after swapping using fixed arrays" );
|
||||
PrintArray( source );
|
||||
PrintArray( target );
|
||||
}
|
||||
|
||||
static void PrintArray( int[] a )
|
||||
{
|
||||
foreach ( int i in a )
|
||||
Console.Write( "{0} ", i );
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
# see top-level Makefile.in
|
||||
arrays
|
||||
callback
|
||||
class
|
||||
enum
|
||||
|
|
|
|||
0
Examples/guile/matrix/matrix.scm
Normal file → Executable file
0
Examples/guile/matrix/matrix.scm
Normal file → Executable file
|
|
@ -1,4 +1,4 @@
|
|||
public class runme
|
||||
public class main
|
||||
{
|
||||
static {
|
||||
try {
|
||||
|
|
@ -88,7 +88,7 @@ Note: when creating a C++ extension, you must run SWIG with the <tt>-c++</tt> op
|
|||
|
||||
<h2>A sample Java program</h2>
|
||||
|
||||
Click <a href="runme.java">here</a> to see a Java program that calls the C++ functions from Java.
|
||||
Click <a href="main.java">here</a> to see a Java program that calls the C++ functions from Java.
|
||||
|
||||
<h2>Key points</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// This example illustrates how C++ classes can be used from Java using SWIG.
|
||||
// The Java class gets mapped onto the C++ class and behaves as if it is a Java class.
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("example");
|
||||
|
|
@ -20,7 +20,7 @@ to see a SWIG interface with some constant declarations in it.
|
|||
Click <a href="../../../Doc/Manual/Java.html#constants">here</a> for the section on constants in the SWIG and Java documentation.
|
||||
<p>
|
||||
|
||||
Click <a href="runme.java">here</a> to see a Java program that prints out the values
|
||||
Click <a href="main.java">here</a> to see a Java program that prints out the values
|
||||
of the constants contained in the above file.</p>
|
||||
<h2>Key points</h2>
|
||||
<ul>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import java.lang.reflect.*;
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("example");
|
||||
|
|
@ -21,7 +21,7 @@ See the documentation for the other approaches for wrapping enums.
|
|||
<ul>
|
||||
<li><a href="example.h">example.h</a>. Header file containing some enums.
|
||||
<li><a href="example.i">example.i</a>. Interface file.
|
||||
<li><a href="runme.java">runme.java</a>. Sample Java program.
|
||||
<li><a href="main.java">main.java</a>. Sample Java program.
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("example");
|
||||
|
|
@ -17,7 +17,7 @@ class CEO extends Manager {
|
|||
}
|
||||
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("example");
|
||||
|
|
@ -66,7 +66,7 @@ Here are some files that illustrate this with a simple example:
|
|||
<li><a href="example.c">example.c</a>
|
||||
<li><a href="example.h">example.h</a>
|
||||
<li><a href="example.i">example.i</a> (SWIG interface)
|
||||
<li><a href="runme.java">runme.java</a> (Sample program)
|
||||
<li><a href="main.java">main.java</a> (Sample program)
|
||||
</ul>
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -30,7 +30,7 @@ certain C declarations are turned into constants.
|
|||
<h2>Running the examples</h2>
|
||||
Please see the <a href="../../Doc/Manual/Windows.html">Windows</a> page in the main manual for information on using the examples on Windows. <p>
|
||||
|
||||
On Unix most of the examples work by making the Makefile before executing the program runme.java. The Makefile will output the swig generated JNI c code as well as the Java wrapper classes. Additionally the JNI c/c++ code is compiled into the shared object (dynamic link library) which is needed for dynamic linking to the native code. The Makefiles also compile the Java files using javac.
|
||||
On Unix most of the examples work by making the Makefile before executing the program main.java. The Makefile will output the swig generated JNI c code as well as the Java wrapper classes. Additionally the JNI c/c++ code is compiled into the shared object (dynamic link library) which is needed for dynamic linking to the native code. The Makefiles also compile the Java files using javac.
|
||||
<p>
|
||||
Ensure that the dynamic link library file is in the appropriate path before executing the Java program. For example in Unix, libexample.so must be in the LD_LIBRARY_PATH.
|
||||
<p>
|
||||
|
|
@ -39,7 +39,7 @@ A Unix example:
|
|||
<pre>
|
||||
$ make
|
||||
$ export LD_LIBRARY_PATH=. #ksh
|
||||
$ java runme
|
||||
$ java main
|
||||
</pre>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -18,7 +18,7 @@ This example compares wrapping a c global function using the manual way and the
|
|||
|
||||
<ul>
|
||||
<li><a href="example.i">example.i</a>. Interface file comparing code wrapped by SWIG and wrapped manually.
|
||||
<li><a href="runme.java">runme.java</a>. Sample Java program showing calls to both manually wrapped and SWIG wrapped c functions.
|
||||
<li><a href="main.java">main.java</a>. Sample Java program showing calls to both manually wrapped and SWIG wrapped c functions.
|
||||
</ul>
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -144,7 +144,7 @@ extraction.
|
|||
<ul>
|
||||
<li> <a href="example.c">example.c</a> (C Source)
|
||||
<li> <a href="example.i">example.i</a> (Swig interface)
|
||||
<li> <a href="runme.java">runme.java</a> (Java program)
|
||||
<li> <a href="main.java">main.java</a> (Java program)
|
||||
</ul>
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -121,7 +121,7 @@ Click <a href="example.i">here</a> to see a SWIG interface file with these addit
|
|||
|
||||
<h2>Sample Java program</h2>
|
||||
|
||||
Click <a href="runme.java">here</a> to see a Java program that manipulates some C++ references.
|
||||
Click <a href="main.java">here</a> to see a Java program that manipulates some C++ references.
|
||||
|
||||
<h2>Notes:</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// This example illustrates the manipulation of C++ references in Java.
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("example");
|
||||
|
|
@ -65,15 +65,15 @@ to create the extension <tt>libexample.so (unix)</tt>.
|
|||
|
||||
<h2>Using the extension</h2>
|
||||
|
||||
Click <a href="runme.java">here</a> to see a program that calls our C functions from Java.
|
||||
Click <a href="main.java">here</a> to see a program that calls our C functions from Java.
|
||||
<p>
|
||||
Compile the java files <tt><a href="example.java">example.java</a></tt> and <tt><a href="runme.java">runme.java</a></tt>
|
||||
to create the class files example.class and runme.class before running runme in the JVM. Ensure that the libexample.so file is in your LD_LIBRARY_PATH before running. For example:
|
||||
Compile the java files <tt><a href="example.java">example.java</a></tt> and <tt><a href="main.java">main.java</a></tt>
|
||||
to create the class files example.class and main.class before running main in the JVM. Ensure that the libexample.so file is in your LD_LIBRARY_PATH before running. For example:
|
||||
<blockquote>
|
||||
<pre>
|
||||
export LD_LIBRARY_PATH=. #ksh
|
||||
javac *.java
|
||||
java runme
|
||||
java main
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -85,7 +85,7 @@ Note that SWIG parses the templated function <tt>max</tt> and templated class <t
|
|||
|
||||
<h2>A sample Java program</h2>
|
||||
|
||||
Click <a href="runme.java">here</a> to see a Java program that calls the C++ functions from Java.
|
||||
Click <a href="main.java">here</a> to see a Java program that calls the C++ functions from Java.
|
||||
|
||||
<h2>Notes</h2>
|
||||
Use templated classes just like you would any other SWIG generated Java class. Use the classnames specified by the %template directive.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// This example illustrates how C++ templates can be used from Java.
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("example");
|
||||
|
|
@ -16,7 +16,7 @@ This example shows how typemaps can be used to modify the default behaviour of t
|
|||
|
||||
<ul>
|
||||
<li><a href="example.i">example.i</a>. Interface file.
|
||||
<li><a href="runme.java">runme.java</a>. Sample Java program.
|
||||
<li><a href="main.java">main.java</a>. Sample Java program.
|
||||
</ul>
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
public class runme {
|
||||
public class main {
|
||||
|
||||
static {
|
||||
try {
|
||||
|
|
@ -38,7 +38,7 @@ example.set_foo(12.3);
|
|||
</pre>
|
||||
</blockquote>
|
||||
|
||||
Click <a href="runme.java">here</a> to see the example program that updates and prints
|
||||
Click <a href="main.java">here</a> to see the example program that updates and prints
|
||||
out the values of the variables using this technique.
|
||||
|
||||
<h2>Key points</h2>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class runme {
|
||||
public class main {
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("example");
|
||||
|
|
@ -26,12 +26,7 @@ extern "C" {
|
|||
#include <lauxlib.h>
|
||||
#include <lualib.h>
|
||||
}
|
||||
|
||||
/* The SWIG external runtime is generated by using.
|
||||
swig -lua -externalruntime swigluarun.h
|
||||
It contains useful function used by SWIG in its wrappering
|
||||
SWIG_TypeQuery() SWIG_NewPointerObj()
|
||||
*/
|
||||
|
||||
#include "swigluarun.h" // the SWIG external runtime
|
||||
|
||||
/* the SWIG wrappered library */
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ InputName=example
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ InputName=example
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ InputName=bar
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ InputName=bar
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ InputName=base
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ InputName=base
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ InputName=foo
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ InputName=foo
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ InputName=spam
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ InputName=spam
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -c++ -perl5 $(InputPath)
|
||||
..\..\..\swig -c++ -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ InputName=example
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -perl5 $(InputPath)
|
||||
..\..\..\swig -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ InputName=example
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -perl5 $(InputPath)
|
||||
..\..\..\swig -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ InputName=example
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -perl5 $(InputPath)
|
||||
..\..\..\swig -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ InputName=example
|
|||
echo PERL5_INCLUDE: %PERL5_INCLUDE%
|
||||
echo PERL5_LIB: %PERL5_LIB%
|
||||
echo on
|
||||
..\..\..\swig.exe -perl5 $(InputPath)
|
||||
..\..\..\swig -perl5 $(InputPath)
|
||||
|
||||
# End Custom Build
|
||||
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
SRCS = example.c
|
||||
TARGET = example
|
||||
INTERFACE = example.i
|
||||
LIBS =
|
||||
SWIGOPT =
|
||||
|
||||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp
|
||||
php4_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php
|
||||
php4
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php
|
||||
php4
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp
|
||||
php4_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp
|
||||
php4_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php
|
||||
php4
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp
|
||||
php4_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue