From 837cb6e28871e90ba7471d6d28d0a8d1b8d86290 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 20 Jul 2024 01:13:59 +0100 Subject: [PATCH] Update build script --- compile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compile b/compile index 9f48cec..3ae8541 100755 --- a/compile +++ b/compile @@ -1,8 +1,10 @@ #!/bin/bash CC=clang -CFLAGS="-g -Isrc" -SRC="src/*.c" +WAPP_INCLUDE="$(find intern/wapp/src -type d | xargs -I{} echo -n "-I{} ")" +WAPP_SRC="$(find intern/wapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ")" +CFLAGS="-g -Isrc $WAPP_INCLUDE" +SRC="src/*.c $WAPP_SRC" OUT=tiny (set -x ; $CC $CFLAGS $SRC -o $OUT)