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 installed mm(3) library πŸ“…
  • --cflags β€” prints the C compiler flags you need to compile your mm(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 the mm(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 the mm(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.com
  • www.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