{Changes to enable non-local build}
(srcdir, VPATH): New vars. Use where appropriate. (libswigtcl8.la, libswigpy.la): Don't die if file to be copied already exists. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@267 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
110ec0e2d9
commit
e615e694be
1 changed files with 14 additions and 11 deletions
|
|
@ -7,6 +7,9 @@
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
LIBTOOL = ../Tools/libtool
|
LIBTOOL = ../Tools/libtool
|
||||||
SWIGLIB = ../Lib
|
SWIGLIB = ../Lib
|
||||||
|
|
@ -14,7 +17,7 @@ LIBS = libswigpl.la libswigpy.la libswigtcl8.la
|
||||||
LIB_DIR = $(exec_prefix)/lib
|
LIB_DIR = $(exec_prefix)/lib
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@sh make.sh
|
@sh $(srcdir)/make.sh
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
@ -40,7 +43,7 @@ TCL_RUNTIME = $(SWIGLIB)/tcl/swigtcl8.swg
|
||||||
tcl: libswigtcl8.la
|
tcl: libswigtcl8.la
|
||||||
|
|
||||||
libswigtcl8.la:
|
libswigtcl8.la:
|
||||||
cp $(TCL_RUNTIME) swigtcl8.c
|
-cp $(srcdir)/$(TCL_RUNTIME) swigtcl8.c
|
||||||
$(LIBTOOL) $(CC) -c $(TCL_INCLUDE) -DSWIG_GLOBAL swigtcl8.c
|
$(LIBTOOL) $(CC) -c $(TCL_INCLUDE) -DSWIG_GLOBAL swigtcl8.c
|
||||||
$(LIBTOOL) $(CC) -o libswigtcl8.la swigtcl8.lo -rpath $(LIB_DIR) -avoid-version
|
$(LIBTOOL) $(CC) -o libswigtcl8.la swigtcl8.lo -rpath $(LIB_DIR) -avoid-version
|
||||||
|
|
||||||
|
|
@ -48,15 +51,15 @@ libswigtcl8.la:
|
||||||
# Python run-time library
|
# Python run-time library
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
PYTHON_INCLUDE= -DHAVE_CONFIG_H @PYINCLUDE@
|
PYTHON_INCLUDE = -DHAVE_CONFIG_H @PYINCLUDE@
|
||||||
PYTHON_RUNTIME= $(SWIGLIB)/python/python.swg
|
PYTHON_RUNTIME = $(SWIGLIB)/python/python.swg
|
||||||
|
|
||||||
# Python shared
|
# Python shared
|
||||||
|
|
||||||
python: libswigpy.la
|
python: libswigpy.la
|
||||||
|
|
||||||
libswigpy.la:
|
libswigpy.la:
|
||||||
cp $(PYTHON_RUNTIME) libpy.c
|
-cp $(srcdir)/$(PYTHON_RUNTIME) libpy.c
|
||||||
$(LIBTOOL) $(CC) -c $(PYTHON_INCLUDE) -DSWIG_GLOBAL libpy.c
|
$(LIBTOOL) $(CC) -c $(PYTHON_INCLUDE) -DSWIG_GLOBAL libpy.c
|
||||||
$(LIBTOOL) $(CC) -o libswigpy.la libpy.lo -rpath $(LIB_DIR) -avoid-version
|
$(LIBTOOL) $(CC) -o libswigpy.la libpy.lo -rpath $(LIB_DIR) -avoid-version
|
||||||
|
|
||||||
|
|
@ -64,8 +67,8 @@ libswigpy.la:
|
||||||
# Perl run-time library
|
# Perl run-time library
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
PERL5_INCLUDE= -I@PERL5EXT@
|
PERL5_INCLUDE = -I@PERL5EXT@
|
||||||
PERL5_RUNTIME= $(SWIGLIB)/perl5/perl5.swg
|
PERL5_RUNTIME = $(SWIGLIB)/perl5/perl5.swg
|
||||||
|
|
||||||
# Perl shared
|
# Perl shared
|
||||||
|
|
||||||
|
|
@ -73,7 +76,7 @@ perl5: libswigpl.la
|
||||||
|
|
||||||
libswigpl.la:
|
libswigpl.la:
|
||||||
@rm -f libperl.c
|
@rm -f libperl.c
|
||||||
cat perlrun.h >> libperl.c
|
cat $(srcdir)/perlrun.h >> libperl.c
|
||||||
cat $(PERL5_RUNTIME) >> libperl.c
|
cat $(srcdir)/$(PERL5_RUNTIME) >> libperl.c
|
||||||
$(LIBTOOL) $(CC) -c $(PERL5_INCLUDE) -DSWIG_GLOBAL -Dbool=char -Dexplicit= libperl.c
|
$(LIBTOOL) $(CC) -c $(PERL5_INCLUDE) -DSWIG_GLOBAL -Dbool=char -Dexplicit= libperl.c
|
||||||
$(LIBTOOL) $(CC) -o libswigpl.la libperl.lo -rpath $(LIB_DIR) -avoid-version
|
$(LIBTOOL) $(CC) -o libswigpl.la libperl.lo -rpath $(LIB_DIR) -avoid-version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue