08-08-2006
The vpath (lower case) is a directive different from VPATH(uppercase) variable. vpath is more selective than VPATH. In VPATH you will give the path where the make should search for the libraries etc.
With vpath you can specify, for a specific pattern of pre-requisities needs to be searched in a specific path.
How to use -
vpath pattern directories
Specify the search path directories for file names that match pattern.
The search path, directories, is a list of directories to be searched, separated by colons (semi-colons on MS-DOS and MS-Windows) or blanks, just like the search path used in the VPATH variable.
Eg.
vpath %.h ../headers
tells make to look for any prerequisite whose name ends in .h in the directory ../headers if the file is not found in the current directory.
-Jerry
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I set up a directive for the .htaccess file in one of my web directories. It works fine. Is there a way to force only users outside my internal home network to go through the password authorization? Or, put another way, any user in my network should not have to enter a password.
Is that possible? (2 Replies)
Discussion started by: dangral
2 Replies
2. Programming
hey everyone. havent posted here in a longgggg time. hope to see some familiar faces!
heres my question, ive been doing basic programming in c++ again and want to use getch(). in *nix i have to use the curses library, and in windows conio.h
is there a way i can have the compiler determine... (2 Replies)
Discussion started by: norsk hedensk
2 Replies
3. AIX
Hi,
I have a question about AIX vpaths and the fbvols you create via dscli on a DS8100 storage. Is there any command or any way to look which fbvol corresponds which vpath on operating system like the command fget_config -Av on a FastT storage system? I tried the datapath query device, datapath... (1 Reply)
Discussion started by: samaks
1 Replies
4. AIX
Is there a simply way for me to map a vpath to an hdisk on AIX 5.2? (5 Replies)
Discussion started by: 2dumb
5 Replies
5. Programming
Hi there,
I'm working on a c++ project and I need to use some libraries which are part of a framework. I installed it on my home directory, and alle the .hh are located in subdirs of my home.
I'd like to include the files I need just as if they where std c header, that is:
#include... (2 Replies)
Discussion started by: clalfa
2 Replies
6. AIX
Hi everyone,
how can I check if I have LUNs in a server and the LUNīs vpath in AiX?
thx (5 Replies)
Discussion started by: jcpetela
5 Replies
7. AIX
Hello everyone:
just want to know how to get the name of the shark in which the vpath is?
thanks (2 Replies)
Discussion started by: jcpetela
2 Replies
8. Web Development
Hi,
Does the apache Allow from directive support regular expressions?
such as: Allow from ^web11blah\.blah\.blah\.yahoo\.com$
what i want to do:
allow access from hosts in the range web1160blah.blah.blah.yahoo.com to web1189blah.blah.blah.yahoo.com
notice the 1160 to 1189 range as part... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies
9. AIX
Hello all,
I need to run successfully this command :
1:root@abcd:/root # lscfg -vl vpathXY
lscfg: device vpathXY not found.
1:root@abcd:/root # echo $?
1
If I run it on another server I will get no output which is ok :
1:root@efgh:/root # lscfg -vl vpathAB
1:root@efgh:/root # echo... (0 Replies)
Discussion started by: phobus
0 Replies
10. AIX
Hello all,
I need to run successfully this command :
1:root@abcd:/root # lscfg -vl vpathXY
lscfg: device vpathXY not found.
1:root@abcd:/root # echo $?
1
If I run it on another server I will get no output which is ok :
1:root@efgh:/root # lscfg -vl vpathAB
1:root@efgh:/root # echo $?... (4 Replies)
Discussion started by: phobus
4 Replies
modpath(2) System Calls Manual modpath(2)
NAME
modpath - change global search path for dynamically loadable kernel modules
SYNOPSIS
DESCRIPTION
allows processes with appropriate privilege to modify the global search path used to locate object files for dynamically loadable kernel
modules. The search path modifications take effect immediately and affect all subsequent loads for all users on the system.
pathname may be either a colon-separated list of absolute path names or NULL. If the former, these path names represent directories which
should be searched for all autoloads of loadable kernel modules and for demand loads (see modload(2)) where the module is given by a simple
file name. This list of directories will be prepended to the existing list of directories and so will be searched before any directories
given in previous calls to and before the default location which is always searched last. The directories do not have to exist on the sys-
tem at the time is called, or when a load actually takes place. If pathname is equal to NULL, the global search path is set back to its
initial default value,
Notes
is currently implemented as a macro. Module search path is not persistent across boots.
Security Restrictions
is restricted to superuser processes or privileged processes. A privileged process requires the privilege to execute the system call.
See privileges(5) for more information about the privilege.
RETURN VALUE
On success, returns 0, otherwise it returns -1 and sets to indicate the error.
ERRORS
fails if one or more of the following are true:
The list of directories specified by pathname is malformed.
The Dynamically Loadable Kernel Module feature is not initialized.
pathname
is more than characters long.
The caller is not a superuser process or a privileged process.
SEE ALSO
kcmodule(1M), modload(2), privileges(5).
modpath(2)