MM-CONFIG(1)
π MM-CONFIG(1) π
okay so bestie, welcome to the Shared Memory Library manual page β short, sweet, and it does exactly what it says on the tin π
β¨ NAME β¨
mm-config β the OSSP mm library configuration/build utility π
πΈ VERSION πΈ
OSSP mm 1.4.1 (10-Aug-2006) β vintage, but iconic π
π¦ SYNOPSIS π¦
mm-config [--help] [--version] [--cflags] [--ldflags] [--libs]
π DESCRIPTION π
So mm-config is a little helper utility that makes configuring and building applications based on the mm(3) library actually easy. It's basically your translator: you ask it stuff, and it hands you back the C compiler and linker flags you need to correctly compile and link your application against the mm(3) library. no cap, that's the whole job π«Ά
tiny program, main character energy. periodt.
π OPTIONS π
mm-config accepts the following options:
--helpβ prints the short usage information. the "hi bestie, here's how to use me" move β¨--versionβ prints the version number and date of the installedmm(3)library π--cflagsβ prints the C compiler flags you need to compile yourmm(3)-based application. this output usually gets added to the"CFLAGS"variable of the application's"Makefile"π--ldflagsβ prints the linker flags (-L) you need to link your application with themm(3)library. this output usually gets added to the"LDFLAGS"variable of the application's"Makefile"π--libsβ prints the library flags (-l) you need to link your application with themm(3)library. and yep, this output usually gets added to the"LIBS"variable of the application's"Makefile"π
π EXAMPLE π
okay this is the part where it serves. your Makefile:
CC=cc
CFLAGS=-O `mm-config --cflags`
LDFLAGS=`mm-config --ldflags`
LIBS=-lm `mm-config --libs`
all: foo
foo: foo.o
$(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
foo.o: foo.c
$(CC) $(CFLAGS) -c foo.c
it's giving "I know exactly what flags I need and I'm not stressed about it" π π₯
π SEE ALSO π
π AUTHOR π
- Ralf S. Engelschall
rse@engelschall.comwww.engelschall.com
and that's the whole page bestie, we ate and left no crumbs π½οΈβ¨
this was OSSP mm version 1.4.1, dated 10-Aug-2006 π thanks for reading, ily, go build something cute π¦
π¦ where this page comes from
- debian bookworm: libmm-dev 1.4.2-7
- debian trixie: libmm-dev 1.4.2-7
- fedora 43: mm-devel 1.4.2-37.fc43 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 43: mm-devel 1.4.2-37.fc43 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 44: mm-devel 1.4.2-38.fc44 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 44: mm-devel 1.4.2-38.fc44 Β· LicenseRef-Callaway-BSD-with-advertising
- ubuntu jammy: libmm-dev 1.4.2-6
- ubuntu noble: libmm-dev 1.4.2-7
- ubuntu questing: libmm-dev 1.4.2-7
- ubuntu resolute: libmm-dev 1.4.2-7build1
- ubuntu stonking: libmm-dev 1.4.2-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms