7 if [ "z$1" = "z-h" ]; then
8 echo "there is only one option: --crapberra"
9 echo "it means: use libcanberra (whatever it is)"
11 elif [ "z$1" = "z--crapberra" ]; then
12 CRAP_DEFS
="-DUSE_CRAPBERRA"
14 elif [ "z$1" != "z" ]; then
20 pkg-config
--exists x11
22 if [ "$res" -ne 0 ]; then
27 XLIB_FLAGS
=`pkg-config --cflags --libs x11`
33 CFLAGS
="$CFLAGS -fwrapv -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-diagnostics-show-caret"
34 if [ "z$GCC" = "z" ]; then
38 $GCC -std=gnu99
-O2 -Wall $CFLAGS -s src
/yterm_main.c
-o yterm
$CRAP_DEFS $XLIB_FLAGS $CRAP_FLAGS -lrt -lutil