Another small update.
[Python-Scripts.git] / PySmile / pysmile-gcc
blobb1a7eac6dc527324765c3722310123ff310bf035
1 #!/bin/sh
3 if [ -z "${PYTHON}" ]; then
4 export PYTHON="$(/usr/bin/which python2)"
5 fi
6 if [ -z "${CC}" ]; then
7 export CC="$(/usr/bin/which gcc)"
8 fi
9 if [ -z "${2}" ]; then
10 ./pysmile-gen "${1}" "C" | ${CC} `sdl-config --cflags` `sdl-config --libs` -lSDL_gfx -o "${1%.*}" -x c -
11 else
12 mkdir -v -p $(dirname ${2})
13 ./pysmile-gen "${1}" "C" | ${CC} `sdl-config --cflags` `sdl-config --libs` -lSDL_gfx -o "${2}" -x c -