ALLEGRO(1)
๐ ALLEGRO(1) ยท Allegro 4.0.3 ๐
โจ NAME โจ
allegro-config, aka the script that tells you everything about the Allegro version you've got installed ๐
๐ SYNOPSIS ๐
allegro-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version]
[--libs] [--cflags] [--static] [--shared] [--env]
[release|debug|profile]
๐ฆ DESCRIPTION ๐ฆ
okay so allegro-config is a tool that figures out the compiler and linker flags you need to compile and link programs that use the Allegro library ๐ฅ it's meant for Unix systems, and it's giving a much cleaner alternative to just typing the simple -lalleg call. obsessed.
๐ EXAMPLE ๐
gcc -o mygame mygame.o `allegro-config --libs`
ngl this is the whole vibe. allegro-config slides the arguments needed for linking right into your command line โจ
๐ธ OPTIONS ๐ธ
allegro-config accepts the following options, bestie:
--versionโ prints the Allegro version that's currently installed, straight to the standard output ๐--libsโ prints the linker flags you need to link an Allegro program ๐--cflagsโ prints the compiler flags you need to compile an Allegro program ๐ ๏ธ--prefix=PREFIXโ use PREFIX instead of the installation prefix Allegro was built with when computing the output for--cflagsand--libs. this one also doubles as the exec prefix if you didn't set--exec-prefix. โ ๏ธ it has to come before any--libsor--cflagsoptions, no exceptions ๐--exec-prefix=PREFIXโ use PREFIX instead of the installation exec prefix Allegro was built with when computing the output for--cflagsand--libs. same rule here: it must be specified before any--libsor--cflagsoptions ๐ซถ--staticโ like--libs, but it always prints the linker flags needed for a statically linked executable ๐ง--sharedโ like--libs, but it always prints the linker flags needed for an executable linked against shared libs ๐--envโ prints some needed environment variables in a format that works in shell scripts. you can load the output into your environment with the line below ๐
BASH#> eval `allegro-config --env`
releaseโ uses the optimized Allegro library. this is the one you want when you're compiling for a release ๐debugโ adds extra debug info to your programs so you can figure out where they crashed, or just debug them in general (function names show up, so iconic). you can pick this while you're still developing ๐profileโ for when you want to profile your program, aka measure how fast its various function calls are ๐โโ๏ธ๐จ
๐ง SEE ALSO ๐ง
allegro-dev-tools(1)- The allegro info entry
๐ COPYRIGHT ๐
okay, credit where it's due ๐ this manual page was written by Eduard Bloch <blade@debian.org>, for the Debian GNU/Linux system (but anyone else is welcome to use it). it's heavily based on a similar manpage for gtk-config, written by Owen Taylor, and his notice goes like this:
Copyright ยฉ 1998 Owen Taylor
basically, permission is granted to use, copy, modify, and distribute this software and its documentation for any purpose and without fee ๐ the one catch is that the copyright notice and this permission notice have to show up in all copies, along with supporting documentation ๐ซถ
Version: 8 June 2003 ยท ALLEGRO(1) ๐ that's the whole tea, bestie, now go make a game ๐ฎโจ
๐ฆ where this page comes from
- debian bookworm: liballegro4-dev 2:4.4.3.1-3 ยท Allegro-gift-ware
- debian trixie: liballegro4-dev 2:4.4.3.1-5+b2 ยท Allegro-gift-ware
- ubuntu jammy: liballegro4-dev 2:4.4.3.1-2 ยท Allegro-gift-ware
- ubuntu noble: liballegro4-dev 2:4.4.3.1-4.1build3 ยท Allegro-gift-ware
- ubuntu questing: liballegro4-dev 2:4.4.3.1-6
- ubuntu resolute: liballegro4-dev 2:4.4.3.1-7 ยท Allegro-gift-ware
- ubuntu stonking: liballegro4-dev 2:4.4.3.1-9 ยท Allegro-gift-ware
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms