twitchbot

twitchbot.git
git clone git://git.lenczewski.org/twitchbot.git
Log | Files | Refs | README | LICENSE

build.sh (291B)


      1 #!/bin/sh
      2 
      3 CC="${CC:-cc}"
      4 
      5 WARNINGS="-Wall -Wextra -Wpedantic -Werror"
      6 
      7 CFLAGS="-std=c11 -Og -g"
      8 CPPFLAGS="-UNDEBUG"
      9 
     10 INCS="$(pkg-config --cflags liburing)"
     11 LIBS="$(pkg-config --libs liburing)"
     12 
     13 set -ex
     14 
     15 mkdir -p bin
     16 
     17 $CC -o bin/twitchbot twitchbot/twitchbot.c $CFLAGS $CPPFLAGS $INCS $LIBS