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 --cflags and --libs. this one also doubles as the exec prefix if you didn't set --exec-prefix. โš ๏ธ it has to come before any --libs or --cflags options, no exceptions ๐Ÿ™ˆ
  • --exec-prefix=PREFIX โ€” use PREFIX instead of the installation exec prefix Allegro was built with when computing the output for --cflags and --libs. same rule here: it must be specified before any --libs or --cflags options ๐Ÿซถ
  • --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 ๐Ÿงš


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 ๐ŸŽฎโœจ