sdl-config1
Script to get information about the installed version of sdl
Usage
sdl-config [--prefix
[DIR]]
[--exec-prefix
[DIR]]
[--version]
[--cflags]
[--libs]
[--static-libs]
Overview
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.
Options
-
--cflags -
Print the compiler flags that are necessary to compile a program or library that uses SDL.
-
--exec-prefix[=DIR] -
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.
-
--libs -
Print the linker flags that are necessary to link a program that uses SDL.
-
--static-libs -
Print the linker flags that are necessary to statically link a program that uses SDL.
-
--prefix[=DIR] -
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.
-
--version -
Prints the currently installed version of SDL on standard output.
Examples
- gcc -o main.o $(sdl-config --cflags) main.c
-
is how you might use
sdl-configto compile a C source file for an executable program.
- gcc -o my_app $(sdl-config --libs) main.o util.o
-
is how you might use
sdl-configto link compiled objects into an executable program.
Releases
12 releases since Debian 2.2 (Potato); the text changed 4 times.
--cflags since Debian 3.0 (Woody);
--exec-prefix since Debian 3.0 (Woody);
--libs since Debian 3.0 (Woody);
--prefix since Debian 3.0 (Woody);
--static-libs since Debian 3.1 (Sarge);
--version since Debian 3.0 (Woody).
--library-libs until Debian 7 (Wheezy);
--plugin-libs until Debian 7 (Wheezy).