Add build scripts for development

This commit is contained in:
Abdelrahman Said 2024-02-24 14:59:07 +00:00
parent ad5d76d3cc
commit 36a4c04a5b
2 changed files with 19 additions and 0 deletions

3
build Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
bear -- ./compile $@

16
compile Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
CC=clang
INCLUDE="\
-Ialiases \
-Icpath/include \
-Idstr/include \
"
SRC="\
cpath/src/*.c \
dstr/src/*.c \
"
CFLAGS="-shared -fPIC -Wall -Werror -pedantic"
OUT="libwizapp.so"
(set -x ; $CC $CFLAGS $INCLUDE $SRC -o $OUT)