apv-lib : ApVSys library flag utility

      Copyright (C) 2002 Arnaud BERTRAND
      web-site: http://www.apvsys.org


NAME

apv-lib


Purpose

To send to the compilation script or to the configuration script the appropriate library flags. It contributes to set the libraries under version control.


SYNOPSYS

apv-lib [-I] [-L] [-p] [-s] libtool1 [libtool2..libtooln]


OPTIONS

-I, --include
print the include flags (used by gcc) to stdout

e.g. apv-lib -I zlib xpm

returns: -I/ap/apvroot/SunOS/v5.8/zlib/v1.1.3/include -I/ap/apvroot/SunOS/v5.8/xpm/v3.4/include

-L, --lib
print the library flags (used by ld) to stdout

e.g. apv-lib -L zlib xpm

returns: -L/ap/apvroot/SunOS/v5.8/zlib/v1.1.3/lib -L/ap/apvroot/SunOS/v5.8/xpm/v3.4/lib

-p, --prefix
enables the user to give his own prefix

-s, --suffix
enables the user to give his own suffix

-h, --help
prints a short help message


EXAMPLES

apv-lib -p ``MyPrefix:'' -s ``::MySuffix'' zlib xpm

returns: -MyPrefix:/ap/apvroot/SunOS/v5.8/zlib/v1.1.3::MySuffix MyPrefix:/ap/apvroot/SunOS/v5.8/xpm/v3.4::MySuffix

The normal usage should be:

 > gcc `apv-lib -I zlib xpm png` -c foo.c
 > ld  `apv-lib -L zlib xpm png` foo.o
 > gcc `apv-lib -p "-I" -s "/include" zlib xpm png` -c foo.c


SEE ALSO

apvsys-intro(1) ap-environment(1) apv(1) apv-linktool(1) apv-regtool(1) apv-setdefault(1) apv-osmirror(1) apv-nativeoscheck(1) apv-dbcheck(1) apv-lib(1) apv-xcheck(1)