From 36a4c04a5b3a07e0b44b57ea3031ff44eba1748d Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 24 Feb 2024 14:59:07 +0000 Subject: [PATCH] Add build scripts for development --- build | 3 +++ compile | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 build create mode 100755 compile diff --git a/build b/build new file mode 100755 index 0000000..cd3a103 --- /dev/null +++ b/build @@ -0,0 +1,3 @@ +#!/bin/bash + +bear -- ./compile $@ diff --git a/compile b/compile new file mode 100755 index 0000000..0c3e4b1 --- /dev/null +++ b/compile @@ -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)