1UUID-CONFIG(1) Universally Unique Identifier UUID-CONFIG(1)
2
3
4
6 uuid-config - OSSP uuid API build utility
7
9 OSSP uuid 1.5.0 (28-Jul-2006)
10
12 uuid-config [--help] [--version] [--all] [--prefix] [--exec-prefix]
13 [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]
14 [--cflags] [--ldflags] [--libs]
15
17 The uuid-config program is a little helper utility for easy configuring
18 and building applications based on the uuid(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 uuid(3) library.
21
23 uuid-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 uuid(3) library.
30
31 --all
32 Forces the output of all flags, that is, including extra flags which
33 are not OSSP uuid 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 uuid(3)-based application. The output is usually added to the CFLAGS
62 uuidiable of the applications Makefile.
63
64 --ldflags
65 Prints the linker flags (-L) which are needed to link the application
66 with the uuid(3) library. The output is usually added to the LDFLAGS
67 uuidiable of the applications Makefile.
68
69 --libs
70 Prints the library flags (-l) which are needed to link the applica‐
71 tion with the C uuid(3) library. The output is usually added to the
72 LIBS uuidiable of the applications Makefile.
73
75 CC = cc
76 CFLAGS = -O `uuid-config --cflags`
77 LDFLAGS = `uuid-config --ldflags`
78 LIBS = -lm `uuid-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 uuid(3), uuid(1), OSSP::uuid(3).
88
89
90
9128-Jul-2006 OSSP uuid 1.5.0 UUID-CONFIG(1)