3 prefix=${0%/bin/sdl2-config}
6 libdir=${exec_prefix}/lib
9 #Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
11 Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
13 if test $# -eq 0; then
18 while test $# -gt 0; do
20 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
27 if test $exec_prefix_set = no ; then
45 echo -I${prefix}/include/SDL2 -Dmain=SDL_main
48 # echo -L${exec_prefix}/lib -lmingw32 -lSDL2main -lSDL2 -mwindows
52 echo -L${exec_prefix}/lib -lmingw32 -lSDL2main -lSDL2 -mwindows -Wl,--no-undefined -Wl,--dynamicbase -Wl,--nxcompat -Wl,--high-entropy-va -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid -static-libgcc