Fixed subtle bug where 'make prefix=/somewhere; make clean; make prefix=/somwhere/else' produced an executable using the incorrect library directories.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4186 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e3313c3322
commit
cde8077ed4
1 changed files with 12 additions and 1 deletions
|
|
@ -5,6 +5,13 @@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
|
||||||
|
# prefix is needed for swig_lib
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
release_suffix = @release_suffix@
|
||||||
|
swig_lib = @swig_lib@
|
||||||
|
libdir = @libdir@
|
||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
CFLAGS = @CFLAGS@ @SWILL@
|
CFLAGS = @CFLAGS@ @SWILL@
|
||||||
|
|
@ -12,6 +19,10 @@ YACC = @YACC@
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
|
||||||
|
# These C macros are passed on the compilation command line as autoconf won't expand them for
|
||||||
|
# generation into a header file. This is because they can be set when running make.
|
||||||
|
DEFS = -DSWIG_LIB=\"$(swig_lib)\" -DLIBDIR=\"$(libdir)\" -DRELEASE_SUFFIX=\"$(release_suffix)\"
|
||||||
|
|
||||||
TARGET = libmodules.a
|
TARGET = libmodules.a
|
||||||
OBJS = main.@OBJEXT@ module.@OBJEXT@ emit.@OBJEXT@ overload.@OBJEXT@ lang.@OBJEXT@ typepass.@OBJEXT@ allocate.@OBJEXT@ browser.@OBJEXT@ contract.@OBJEXT@ swigmain.@OBJEXT@ tcl8.@OBJEXT@ python.@OBJEXT@ perl5.@OBJEXT@ guile.@OBJEXT@ ruby.@OBJEXT@ mzscheme.@OBJEXT@ java.@OBJEXT@ php4.@OBJEXT@ ocaml.@OBJEXT@ xml.@OBJEXT@ pike.@OBJEXT@ s-exp.@OBJEXT@
|
OBJS = main.@OBJEXT@ module.@OBJEXT@ emit.@OBJEXT@ overload.@OBJEXT@ lang.@OBJEXT@ typepass.@OBJEXT@ allocate.@OBJEXT@ browser.@OBJEXT@ contract.@OBJEXT@ swigmain.@OBJEXT@ tcl8.@OBJEXT@ python.@OBJEXT@ perl5.@OBJEXT@ guile.@OBJEXT@ ruby.@OBJEXT@ mzscheme.@OBJEXT@ java.@OBJEXT@ php4.@OBJEXT@ ocaml.@OBJEXT@ xml.@OBJEXT@ pike.@OBJEXT@ s-exp.@OBJEXT@
|
||||||
SRCS = main.cxx module.cxx emit.cxx overload.cxx lang.cxx typepass.cxx allocate.cxx browser.cxx contract.cxx swigmain.cxx tcl8.cxx python.cxx perl5.cxx guile.cxx ruby.cxx mzscheme.cxx java.cxx php4.cxx ocaml.cxx xml.cxx pike.cxx s-exp.cxx
|
SRCS = main.cxx module.cxx emit.cxx overload.cxx lang.cxx typepass.cxx allocate.cxx browser.cxx contract.cxx swigmain.cxx tcl8.cxx python.cxx perl5.cxx guile.cxx ruby.cxx mzscheme.cxx java.cxx php4.cxx ocaml.cxx xml.cxx pike.cxx s-exp.cxx
|
||||||
|
|
@ -25,7 +36,7 @@ INCLUDES = -I$(srcdir)/../Include \
|
||||||
# Rules for creation of a .@OBJEXT@ file from .cxx
|
# Rules for creation of a .@OBJEXT@ file from .cxx
|
||||||
.SUFFIXES: .cxx
|
.SUFFIXES: .cxx
|
||||||
.cxx.@OBJEXT@:
|
.cxx.@OBJEXT@:
|
||||||
$(CXX) $(INCLUDES) $(CFLAGS) -c -o $*.@OBJEXT@ $<
|
$(CXX) $(DEFS) $(INCLUDES) $(CFLAGS) -c -o $*.@OBJEXT@ $<
|
||||||
|
|
||||||
|
|
||||||
swig: $(TARGET)
|
swig: $(TARGET)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue