#!/bin/sh -e

script_dir=$(dirname "$0")
cd "$script_dir"

cd depends/libcap/libcap
make SHARED=no GOLANG=no PTHREADS=no
cd ../../../
gcc main.c -o kms-server-proxy -fstack-protector-all -O3 -s -flto -Wall -Wextra -Werror -DNDEBUG -static -static-libgcc -I./depends/libcap/libcap/include ./depends/libcap/libcap/libcap.a