wizapp-stdlib/compile
2024-03-24 05:52:29 +00:00

19 lines
317 B
Bash
Executable File

#!/bin/bash
CC=clang
INCLUDE="\
-Ialiases \
-Icpath/include \
-Idstr/include \
$(find mem/include/ -type d | xargs -I{} echo -n "-I{} ") \
"
SRC="\
cpath/src/*.c \
dstr/src/*.c \
mem/src/*/*.c \
"
CFLAGS="-shared -fPIC -Wall -Werror -pedantic"
OUT="libwizapp.so"
(set -x ; $CC $CFLAGS $INCLUDE $SRC -o $OUT)