- support VPATH build

This commit is contained in:
Bryce Denney 2002-10-11 18:32:27 +00:00
parent 97717adadb
commit 838df1ee0b
5 changed files with 15 additions and 5 deletions

View File

@ -1,4 +1,6 @@
top_builddir = ..
srcdir = @srcdir@
VPATH = @srcdir@
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@
@ -8,7 +10,7 @@ LIBTOOL=@LIBTOOL@
all: uselib
uselib: uselib.cc libmodule1.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib uselib.cc libmodule1.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib $(srcdir)/uselib.cc libmodule1.la
libmodule1.la: module1.lo
$(LIBTOOL) $(CXX) $(LDFLAGS) -o libmodule1.la module1.lo

View File

@ -1,4 +1,6 @@
top_builddir = ..
srcdir = @srcdir@
VPATH = @srcdir@
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@
@ -9,7 +11,7 @@ RPATH=`pwd`/lib
all: uselib
uselib: uselib.cc libmodule1.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib uselib.cc libmodule1.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib $(srcdir)/uselib.cc libmodule1.la
libmodule1.la: module1.lo
$(LIBTOOL) $(CXX) $(LDFLAGS) -o libmodule1.la module1.lo -rpath ${RPATH}

View File

@ -1,4 +1,6 @@
top_builddir = ..
srcdir = @srcdir@
VPATH = @srcdir@
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@
@ -9,7 +11,7 @@ RPATH=`pwd`/lib
all: uselib
uselib: uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib $(srcdir)/uselib.cc libmodule1.la libmodule2.la
libmodule1.la: module1.lo
$(LIBTOOL) $(CXX) $(LDFLAGS) -o libmodule1.la module1.lo -rpath ${RPATH}

View File

@ -1,4 +1,6 @@
top_builddir = ..
srcdir = @srcdir@
VPATH = @srcdir@
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@
@ -9,7 +11,7 @@ RPATH=`pwd`/lib
all: uselib
uselib: uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib $(srcdir)/uselib.cc libmodule1.la libmodule2.la
libmodule1.la: module1.lo libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o libmodule1.la module1.lo -rpath ${RPATH} libmodule2.la

View File

@ -1,4 +1,6 @@
top_builddir = ..
srcdir = @srcdir@
VPATH = @srcdir@
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@
@ -9,7 +11,7 @@ RPATH=`pwd`/lib
all: uselib
uselib: uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib uselib.cc libmodule1.la libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o uselib $(srcdir)/uselib.cc libmodule1.la libmodule2.la
libmodule1.la: module1.lo libmodule2.la
$(LIBTOOL) $(CXX) $(LDFLAGS) -o libmodule1.la module1.lo -rpath ${RPATH} libmodule2.la