npth-config man page

npth-config — nPth library build utility

Version

GNU nPth 0.91

Synopsis

npth-config [--help] [--version] [--all] [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir] [--cflags] [--ldflags] [--libs]

Description

The npth-config program is a little helper utility for easy configuring and building applications based on the npth(3) library. It can be used to query the C compiler and linker flags which are required to correctly compile and link the application against the npth(3) library.

Options

npth-config accepts the following options:

--thread
Specify thread module to use.
--prefix
Prints the installation prefix of architecture independent files
--exec-prefix
Prints the installation prefix of architecture dependent files.
--version
Prints the version number and date of the installed npth(3) library. nPth specific.
--api-version
Prints the API version of the installed npth(3) library.
--host
Prints host triplet.
--libs
Prints the library flags ("-l") which are needed to link the application with the npth(3) library. The output is usually added to the "LIBS" variable of the applications "Makefile".
--cflags
Prints the C compiler flags which are needed to compile the npth(3)-based application. The output is usually added to the "CFLAGS" variable of the applications "Makefile".

Example

CC      = cc
CFLAGS  = -O `npth-config --cflags`
LIBS    = -lm `npth-config --libs`
all: foo
foo: foo.o
    $(CC) -o foo foo.o $(LIBS)
foo.o: foo.c
    $(CC) $(CFLAGS) -c foo.c

See Also

npth(3), cc(1).

Author

Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com


Milan Bartos
mbartos@redhat.com

Info

GNU nPth 2.0.7 08-Jun-2006 GNU Portable Threads