[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to set up the vpath/VPATH entries for link lib search
From: |
Robert P. J. Day |
Subject: |
how to set up the vpath/VPATH entries for link lib search |
Date: |
Tue, 1 Mar 2005 15:23:09 -0500 (EST) |
section 4.5.6 of the online gnu make manual is a little ambiguous
about how to define the vpath or VPATH entries to support directory
search for link libraries. from that section:
=====
"When a prerequisite's name has the form `-lname', make handles it
specially by searching for the file `libname.so' in the current
directory, in directories specified by matching vpath search paths and
the VPATH search path, and then in the directories `/lib', `/usr/lib',
and `prefix/lib' (normally `/usr/local/lib', but MS-DOS/MS-Windows
versions of make behave as if prefix is defined to be the root of the
DJGPP installation tree).
If that file is not found, then the file `libname.a' is searched for,
in the same directories as above."
=====
ok, so what's the standard way you would set vpath?
vpath %.so dir1:dir2:dir3 ??
vpath lib.%so dir1:dir2:dir3 ??
rday
- how to set up the vpath/VPATH entries for link lib search,
Robert P. J. Day <=