freealut-config(1)

πŸ’– freealut-config(1) β€” the General Commands Manual glow-up πŸ’–

okay bestie, so this is freealut-config, and it lives in section 1 of the General Commands Manual. she's a little script with one job and she's been doing it since forever. let's get into it 🫢


✨ NAME ✨

freealut-config β€” a script to get information about the installed version of freealut 🌸


πŸŽ€ SYNOPSIS πŸŽ€

freealut-config [ --prefix= DIR] [ --exec-prefix= DIR] [ --version ] [
--libs ] [ --cflags ]

πŸ’… DESCRIPTION πŸ’…

so basically, freealut-config is the little tool you run when you need to figure out the compiler and linker flags you should be using to compile and link programs, libraries, and plugins that use freealut. it's the middleman between your build and the actual installed library. iconic behavior, honestly. ✨

⚠️ but listen, bestie, this is the important part: using freealut-config is deprecated. like, lowkey past its moment. the more generic tool pkg-config should be used instead. no cap, that's what the manpage says. πŸ’€

🌈 OPTIONS 🌈

  • --cflags β€” prints out the compiler flags that are necessary to compile a program or library that uses freealut. you need these, she's giving them to you, that's the whole vibe. πŸ’–
  • --exec-prefix=DIR β€” if you specify this, DIR gets used instead of the installation exec prefix that freealut was built with when it computes the output for the --cflags and --libs options. πŸ¦‹ and here's the catch β€” this option must be specified before any of the --cflags and --libs options. order matters, she's picky like that. ✨
  • --libs β€” prints out the linker flags that are necessary to link a program or library that uses freealut. so you can actually, you know, link the thing. πŸ”₯
  • --prefix=DIR β€” if you specify this, PREFIX gets used instead of the installation prefix that freealut was built with when computing the output for the --cflags and --libs options. also, this one is used for the exec prefix too if --exec-prefix wasn't specified. multitasking queen. πŸ‘‘ and again β€” this option must be specified before any of the --cflags and --libs options. πŸ™ˆ
  • --version β€” prints the currently installed version of freealut on standard output. just the version. that's it. she ate. ⭐

🧚 EXAMPLES 🧚

okay so here's how you'd actually use her. two moods, both slay:

gcc -o main.o $(freealut-config --cflags) -c main.c
that's how you might use freealut-config to compile a C source file for an executable program. 🌸
gcc -o my_app $(freealut-config --libs) main.o util.o
and that's how you might use freealut-config to link compiled objects into an executable program. πŸ’œ

πŸ’« SEE ALSO πŸ’«

  • pkg-config(1) β€” the tool you should actually be using, fr fr. πŸ‘‘

this manual page was written for sdl-config by Branden Robinson, originally for Progeny Linux Systems, Inc. and the Debian Project. it was adapted to freealut by Sam Hocevar. πŸ’– giving credit where credit is due, we love to see it.


and that's the whole page, bestie!! βœ¨πŸ’…πŸ¦‹

cute little sign-off to close us out: this is from the freealut source, dated 2003-11-22. periodt. πŸŽ€πŸ’–πŸŒΈ