1PTH-CONFIG(1) GNU Portable Threads PTH-CONFIG(1)
2
3
4
6 pth-config - Pth library build utility
7
9 GNU Pth 2.0.7 (08-Jun-2006)
10
12 pth-config [--help] [--version] [--all] [--prefix] [--exec-prefix]
13 [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]
14 [--cflags] [--ldflags] [--libs]
15
17 The pth-config program is a little helper utility for easy configuring
18 and building applications based on the pth(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 pth(3) library.
21
23 pth-config accepts the following options:
24
25 --help
26 Prints the short usage information.
27
28 --version
29 Prints the version number and date of the installed pth(3) library.
30
31 --all
32 Forces the output of all flags, that is, including extra flags
33 which are not Pth specific.
34
35 --prefix
36 Prints the installation prefix of architecture independent files
37
38 --exec-prefix
39 Prints the installation prefix of architecture dependent files.
40
41 --bindir
42 Prints the installation directory of binaries.
43
44 --libdir
45 Prints the installation directory of libraries.
46
47 --includedir
48 Prints the installation directory of include headers.
49
50 --mandir
51 Prints the installation directory of manual pages.
52
53 --datadir
54 Prints the installation directory of shared data.
55
56 --acdir
57 Prints the installation directory of autoconf data.
58
59 --cflags
60 Prints the C compiler flags which are needed to compile the
61 pth(3)-based application. The output is usually added to the
62 "CFLAGS" variable of the applications "Makefile".
63
64 --ldflags
65 Prints the linker flags ("-L") which are needed to link the appli‐
66 cation with the pth(3) library. The output is usually added to the
67 "LDFLAGS" variable of the applications "Makefile".
68
69 --libs
70 Prints the library flags ("-l") which are needed to link the appli‐
71 cation with the pth(3) library. The output is usually added to the
72 "LIBS" variable of the applications "Makefile".
73
75 CC = cc
76 CFLAGS = -O `pth-config --cflags`
77 LDFLAGS = `pth-config --ldflags`
78 LIBS = -lm `pth-config --libs`
79
80 all: foo
81 foo: foo.o
82 $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
83 foo.o: foo.c
84 $(CC) $(CFLAGS) -c foo.c
85
87 pth(3), cc(1).
88
90 Ralf S. Engelschall
91 rse@engelschall.com
92 www.engelschall.com
93
94
95
9608-Jun-2006 GNU Pth 2.0.7 PTH-CONFIG(1)