cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

sdl2-config.1 (3003B)


      1.TH sdl2-config 1 "2012-02-20" "SDL 2.0"
      2.SH NAME
      3sdl2-config \- script to get information about the installed version of SDL
      4.SH SYNOPSIS
      5.B sdl2-config
      6[ --prefix=
      7.IR DIR ]
      8[ --exec-prefix=
      9.IR DIR ]
     10[ --version ] [ --libs | --library-libs | --plugin-libs ] [ --cflags ]
     11.SH DESCRIPTION
     12.B sdl2-config
     13is a tool that is used to configure and determine the compiler and linker
     14flags that should be used to compile and link programs, libraries, and
     15plugins that use SDL.  It is also used internally by the m4 macros that are
     16included with SDL.
     17.SH OPTIONS
     18.TP
     19.B --cflags
     20Print the compiler flags that are necessary to compile a program or library
     21that uses SDL.
     22.TP
     23.BI --exec-prefix= DIR
     24If specified, use
     25.I DIR
     26instead of the installation exec prefix that SDL was build with when
     27computing 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.
     30.TP
     31.B --libs
     32Print the linker flags that are necessary to link a program that uses SDL.
     33.TP
     34.B --static-libs
     35Print the linker flags that are necessary to statically link a program that uses SDL.
     36.TP
     37.B --library-libs
     38Print 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
     40linked only by executable programs.)
     41.TP
     42.B --plugin-libs
     43Print the linker flags that are necessary to link an SDL-using object that
     44is to be accessed via
     45.IR dlopen (3).
     46This may include static objects with PIC symbol information.  This option
     47should
     48.B not
     49be used for ordinary shared libraries or standalone applications.
     50.TP
     51.BI --prefix= DIR
     52If specified, use PREFIX instead of the installation prefix that SDL was
     53built with when computing the output for the --cflags, --libs,
     54--library-libs, and --plugin-libs options.  This option is also used for
     55the exec prefix if --exec-prefix was not specified.  This option must be
     56specified before any of the --cflags, --libs, --library-libs, and
     57--plugin-libs options.
     58.TP
     59.B --version
     60Prints the currently installed version of SDL on standard output.
     61.SH EXAMPLES
     62.TP
     63gcc -o main.o $(sdl2-config --cflags) main.c
     64is how you might use
     65.B sdl2-config
     66to compile a C source file for an executable program.
     67.TP
     68gcc -o my_app $(sdl2-config --libs) main.o util.o
     69is how you might use
     70.B sdl2-config
     71to link compiled objects into an executable program.
     72.TP
     73gcc -o libSDL_nifty-2.0.so.0.0.1 $(sdl --library-libs) read.o write.o munge.o
     74is how you might use
     75.B sdl2-config
     76to link compiled objects into a shared library.
     77.TP
     78gcc -o libnifty_xmms.so $(sdl --plugin-libs) stream.o blit.o deinterlace.o
     79is how you might use
     80.B sdl2-config
     81to link compiled objects into a plugin for use by another program.
     82.SH AUTHOR
     83The Simple DirectMedia Layer (SDL) library was written by Sam Lantinga.
     84.PP
     85This manual page was written by Branden Robinson, originally for Progeny
     86Linux Systems, Inc., and the Debian Project.