1MM-CONFIG(1) Shared Memory Library MM-CONFIG(1)
2
3
4
6 mm-config - OSSP mm library configuration/build utility
7
9 OSSP mm 1.4.1 (10-Aug-2006)
10
12 mm-config [--help] [--version] [--cflags] [--ldflags] [--libs]
13
15 The mm-config program is a little helper utility for easy configuring
16 and building applications based on the mm(3) library. It can be used
17 to query the C compiler and linker flags which are required to cor‐
18 rectly compile and link the application against the mm(3) library.
19
21 mm-config accepts the following options:
22
23 --help
24 Prints the short usage information.
25
26 --version
27 Prints the version number and date of the installed mm(3) library.
28
29 --cflags
30 Prints the C compiler flags which are needed to compile the
31 mm(3)-based application. The output is usually added to the
32 "CFLAGS" variable of the applications "Makefile".
33
34 --ldflags
35 Prints the linker flags ("-L") which are needed to link the appli‐
36 cation with the mm(3) library. The output is usually added to the
37 "LDFLAGS" variable of the applications "Makefile".
38
39 --libs
40 Prints the library flags ("-l") which are needed to link the appli‐
41 cation with the mm(3) library. The output is usually added to the
42 "LIBS" variable of the applications "Makefile".
43
45 CC=cc
46 CFLAGS=-O `mm-config --cflags`
47 LDFLAGS=`mm-config --ldflags`
48 LIBS=-lm `mm-config --libs`
49
50 all: foo
51 foo: foo.o
52 $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
53 foo.o: foo.c
54 $(CC) $(CFLAGS) -c foo.c
55
57 mm(3).
58
60 Ralf S. Engelschall
61 rse@engelschall.com
62 www.engelschall.com
63
64
65
6610-Aug-2006 MM 1.4.1 MM-CONFIG(1)