From 9f9cc2308dd02aad0524fa786779f12b503d34ce Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Wed, 31 Jul 2024 23:05:15 +0100 Subject: [PATCH] Add math library --- compile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compile b/compile index 3ae8541..e6bf2a4 100755 --- a/compile +++ b/compile @@ -4,7 +4,8 @@ CC=clang 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" +LIBS="-lm" SRC="src/*.c $WAPP_SRC" OUT=tiny -(set -x ; $CC $CFLAGS $SRC -o $OUT) +(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)