Put %p early in the include and link paths. Makefile.in | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -r 1da4ec645534 Makefile.in --- a/Makefile.in Wed Sep 06 18:01:53 2006 -0700 +++ b/Makefile.in Wed Sep 06 18:03:20 2006 -0700 @@ -45,21 +45,21 @@ MYBINDIR = @bindir@ MYBINDIR = @bindir@ MYMAN1DIR = @mandir@/man1 MYMAN3DIR = @mandir@/man3 -MYDATADIR = @datadir@/$(PACKAGE) +MYDATADIR = @datadir@ MYPCDIR = @libdir@/pkgconfig DESTDIR = # Building binaries CC = @CC@ -CPPFLAGS = -I$(srcdir) -I$(HOME)/include -I/usr/local/include @MYDEFS@ \ +CPPFLAGS = -I$(srcdir) -I%p/include @MYDEFS@ \ -D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 \ -D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \ -DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG CFLAGS = -Wall -pedantic -fPIC -fsigned-char -O3 -fomit-frame-pointer -fforce-addr @MYOPTS@ LD = @LD@ LIBS = -lqdbm @LIBS@ -LIBLDFLAGS = -L. -L$(HOME)/lib -L/usr/local/lib @LIBS@ -LDFLAGS = -L. -L$(HOME)/lib -L/usr/local/lib $(LIBS) +LIBLDFLAGS = -L. -L%p/lib @LIBS@ +LDFLAGS = -L. -L%p/lib $(LIBS) LDENV = LD_RUN_PATH=/lib:/usr/lib:$(HOME)/lib:/usr/local/lib:$(MYLIBDIR) AR = @AR@ ARFLAGS = rcsv