DOKK / manpages / debian 10 / libsdl1.2-dev / sdl-config.1.en
sdl-config(1) General Commands Manual sdl-config(1)

sdl-config - script to get information about the installed version of SDL

sdl-config [--prefix=[DIR]] [--exec-prefix=[DIR]] [--version] [--cflags] [--libs] [--static-libs]

sdl-config is a tool that is used to configure and determine the compiler and linker flags that should be used to compile and link programs, libraries, and plugins that use SDL. It is also used internally by the m4 macros that are included with SDL.

Print the compiler flags that are necessary to compile a program or library that uses SDL.
If DIR is not specified, print the exec prefix of the current SDL installation.
If DIR is specified, use it instead of the installation exec prefix that SDL was built with when computing the output for the --cflags, --libs and --static-libs options. This option must be specified before any of the options --cflags, --libs and --static-libs.
Print the linker flags that are necessary to link a program that uses SDL.
Print the linker flags that are necessary to statically link a program that uses SDL.
If DIR is not specified, print the prefix of the current SDL installation.
If DIR is specified, use it instead of the installation prefix that SDL was built with when computing the output for the --cflags, --libs and --static-libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified before any of the options --cflags, --libs and --static-libs.
Prints the currently installed version of SDL on standard output.

is how you might use sdl-config to compile a C source file for an executable program.
is how you might use sdl-config to link compiled objects into an executable program.

The Simple DirectMedia Layer (SDL) library was written by Sam Lantinga.

This manual page was written by Branden Robinson, originally for Progeny Linux Systems, Inc., and the Debian Project.
Updated in 2013 by Manuel A. Fernandez Montecelo <mafm@debian.org>.

2013-07-27 SDL 1.2