browse

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

build.sh (374B)


      1 #!/bin/sh
      2 
      3 CC="${CC:-clang}"
      4 
      5 WARNINGS="-Wall -Wextra ${WERROR:+-Werror} -Wno-unused-parameter"
      6 FLAGS="-std=c11 -O0 -g3"
      7 
      8 DEPS="webkitgtk-6.0 webkitgtk-web-process-extension-6.0"
      9 INCS="$(pkg-config --cflags $DEPS)"
     10 LIBS="$(pkg-config --libs $DEPS)"
     11 
     12 set -ex
     13 
     14 mkdir -p bin
     15 
     16 [ -e config.h ] || cp config.def.h config.h
     17 
     18 $CC -o bin/browse browse.c $WARNINGS $FLAGS $INCS $LIBS