1NPTH-CONFIG(1)               GNU Portable Threads               NPTH-CONFIG(1)
2
3
4

NAME

6       npth-config - nPth library build utility
7

VERSION

9       GNU nPth 0.91
10

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

23       npth-config accepts the following options:
24
25       --thread
26           Specify thread module to use.
27
28       --prefix
29           Prints the installation prefix of architecture independent files
30
31       --exec-prefix
32           Prints the installation prefix of architecture dependent files.
33
34       --version
35           Prints the version number and date of the installed npth(3)
36           library.  nPth specific.
37
38       --api-version
39           Prints the API version of the installed npth(3) library.
40
41       --host
42           Prints host triplet.
43
44       --libs
45           Prints the library flags ("-l") which are needed to link the appli‐
46           cation with the npth(3) library. The output is usually added to the
47           "LIBS" variable of the applications "Makefile".
48
49       --cflags
50           Prints the C compiler flags which are needed to compile the
51           npth(3)-based application. The output is usually added to the
52           "CFLAGS" variable of the applications "Makefile".
53

EXAMPLE

55        CC      = cc
56        CFLAGS  = -O `npth-config --cflags`
57        LIBS    = -lm `npth-config --libs`
58
59        all: foo
60        foo: foo.o
61            $(CC) -o foo foo.o $(LIBS)
62        foo.o: foo.c
63            $(CC) $(CFLAGS) -c foo.c
64

SEE ALSO

66       npth(3), cc(1).
67

AUTHOR

69        Ralf S. Engelschall
70        rse@engelschall.com
71        www.engelschall.com
72
73        Milan Bartos
74        mbartos@redhat.com
75
76
77
7808-Jun-2006                     GNU nPth 2.0.7                  NPTH-CONFIG(1)
Impressum