Add math library

This commit is contained in:
Abdelrahman Said 2024-07-31 23:05:15 +01:00
parent 5f44936dcd
commit 9f9cc2308d

View File

@ -4,7 +4,8 @@ CC=clang
WAPP_INCLUDE="$(find intern/wapp/src -type d | xargs -I{} echo -n "-I{} ")" 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 "{} ")" WAPP_SRC="$(find intern/wapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ")"
CFLAGS="-g -Isrc $WAPP_INCLUDE" CFLAGS="-g -Isrc $WAPP_INCLUDE"
LIBS="-lm"
SRC="src/*.c $WAPP_SRC" SRC="src/*.c $WAPP_SRC"
OUT=tiny OUT=tiny
(set -x ; $CC $CFLAGS $SRC -o $OUT) (set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)