Update build script

This commit is contained in:
abdelrahman committed 2024-07-20 01:13:59 +01:00
1 parent 2beb091a44
commit 837cb6e288
1 file changed
+4 -2
+4 -2
View File
@@ -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)