wizapp-stdlib/compile
2024-04-29 21:42:33 +01:00

14 lines
270 B
Bash
Executable File

#!/bin/bash
CC=clang
INCLUDE="\
$(find src -type d | xargs -I{} echo -n "-I{} ") \
"
SRC="\
$(find src -type f -name *.c | xargs -I{} echo -n "{} ") \
"
CFLAGS="-O3 -shared -fPIC -Wall -Werror -pedantic"
OUT="libwapp.so"
(set -x ; $CC $CFLAGS $INCLUDE $SRC -o $OUT)