ws

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

build.sh (357B)


      1 #!/bin/sh
      2 
      3 CC="${CC:-clang}"
      4 
      5 FLAGS="-Wall -Wextra -Wpedantic ${WERROR:+-Werror} -std=c11 -O0 -g"
      6 DEPS="$(pkg-config --cflags --libs openssl)"
      7 
      8 set -ex
      9 
     10 mkdir -p bin
     11 
     12 $CC -o bin/ws-client ws-client.c $FLAGS $DEPS
     13 $CC -o bin/ws-server ws-server.c $FLAGS $DEPS
     14 #$CC -o bin/sse-client sse-client.c $FLAGS $DEPS
     15 #$CC -o bin/sse-server sse-server.c $FLAGS $DEPS