1sdl-config(1)               General Commands Manual              sdl-config(1)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

14       sdl-config  is  a tool that is used to configure and determine the com‐
15       piler and linker flags that should be used to  compile  and  link  pro‐
16       grams, and libraries, and plugins that use SDL.  It is also used inter‐
17       nally by the m4 macros that are included with SDL.
18

OPTIONS

20       --cflags
21              Print the compiler flags that are necessary to compile a program
22              or library that uses SDL.
23
24       --exec-prefix=DIR
25              If  specified,  use  DIR instead of the installation exec prefix
26              that SDL was build  with  when  computing  the  output  for  the
27              --exec-prefix  option.  This option must be specified before any
28              of the --cflags, and --libs options.
29
30       --libs Print the linker flags that are necessary to link a program that
31              uses SDL.
32
33       --prefix=DIR
34              If  specified,  use  DIR instead of the installation prefix that
35              SDL was built with when computing the output for  the  --prefix,
36              and  --exec-prefix  options.   This  option is also used for the
37              exec prefix if --exec-prefix was not specified. This option must
38              be specified before any of the --cflags, and --libs options.
39
40       --static-libs
41              Print  the  linker flags that are necessary to statically link a
42              program that uses SDL.
43
44       --version
45              Prints the currently installed version of SDL on  standard  out‐
46              put.
47

EXAMPLES

49       gcc -o main.o $(sdl-config --cflags) main.c
50              is  how  you might use sdl-config to compile a C source file for
51              an executable program.
52
53       gcc -o my_app $(sdl-config --libs) main.o util.o
54              is how you might use sdl-config to link compiled objects into an
55              executable program.
56

AUTHOR

58       The Simple DirectMedia Layer (SDL) library was written by Sam Lantinga.
59
60       This manual page was written by Branden Robinson, originally for Proge‐
61       ny Linux Systems, Inc., and the Debian Project.
62
63       This manual page was modified by Petr Pisar to match original SDL  dis‐
64       tribution.
65
66
67
68SDL 1.2                           2013-06-19                     sdl-config(1)
Impressum