Blame build.sh

452870
#!/bin/bash
452870
452870
set -e
452870
3c2742
if [ ! -f "config.h" ]; then
3c2742
  echo "copy config.h from example"
3c2742
  cp config.h.example config.h
3c2742
fi
3c2742
3c2742
dbe1a1
FLAGS="$(pkg-config --cflags --libs x11 xft xtst)"
452870
FLAGS="$FLAGS -Wall"
452870
if [ "$1" = "debug" ]; then
452870
  FLAGS="$FLAGS -g -O0"
452870
else
452870
  FLAGS="$FLAGS -O3 -DNDEBUG"
452870
fi
452870
db2d04
echo cc main.c $FLAGS -o coolkbd
db2d04
     cc main.c $FLAGS -o coolkbd
452870
452870
echo done