1 .TH sdl2-config 1 "2012-02-20" "SDL 2.0"
3 sdl2-config \- script to get information about the installed version of SDL
10 [ --version ] [ --libs | --library-libs | --plugin-libs ] [ --cflags ]
13 is a tool that is used to configure and determine the compiler and linker
14 flags that should be used to compile and link programs, libraries, and
15 plugins that use SDL. It is also used internally by the m4 macros that are
20 Print the compiler flags that are necessary to compile a program or library
23 .BI --exec-prefix= DIR
26 instead of the installation exec prefix that SDL was build with when
27 computing the output for the --cflags, --libs, --library-libs, and
28 --plugin-libs options. This option must be specified before any of the
29 --cflags, --libs, --library-libs, and --plugin-libs options.
32 Print the linker flags that are necessary to link a program that uses SDL.
35 Print the linker flags that are necessary to statically link a program that uses SDL.
38 Print the linker flags that are necessary to link a library that uses SDL.
39 (This excludes any static objects required for linking, since these must be
40 linked only by executable programs.)
43 Print the linker flags that are necessary to link an SDL-using object that
46 This may include static objects with PIC symbol information. This option
49 be used for ordinary shared libraries or standalone applications.
52 If specified, use PREFIX instead of the installation prefix that SDL was
53 built with when computing the output for the --cflags, --libs,
54 --library-libs, and --plugin-libs options. This option is also used for
55 the exec prefix if --exec-prefix was not specified. This option must be
56 specified before any of the --cflags, --libs, --library-libs, and
57 --plugin-libs options.
60 Prints the currently installed version of SDL on standard output.
63 gcc -o main.o $(sdl2-config --cflags) main.c
66 to compile a C source file for an executable program.
68 gcc -o my_app $(sdl2-config --libs) main.o util.o
71 to link compiled objects into an executable program.
73 gcc -o libSDL_nifty-2.0.so.0.0.1 $(sdl --library-libs) read.o write.o munge.o
76 to link compiled objects into a shared library.
78 gcc -o libnifty_xmms.so $(sdl --plugin-libs) stream.o blit.o deinterlace.o
81 to link compiled objects into a plugin for use by another program.
83 The Simple DirectMedia Layer (SDL) library was written by Sam Lantinga.
85 This manual page was written by Branden Robinson, originally for Progeny
86 Linux Systems, Inc., and the Debian Project.