aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-09-12 19:33:03 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-09-12 19:33:03 -0500
commit18e58d25b7f37ae147475336cc81241e25736eed (patch)
treeb118b507617b1f61eaea5503a2b385b57c7bfc5e
parent66ca753b40910c2136ef0f3df0981b2a7fa1931d (diff)
updated build.shHEADmain
-rwxr-xr-xbuild.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/build.sh b/build.sh
index e32a8cb..ee40cdd 100755
--- a/build.sh
+++ b/build.sh
@@ -1,7 +1,7 @@
#!/bin/sh
DEBUG=""
-LIB="-Ilib/ -lSDL2_gfx"
+LIB="-Ilib/ -lSDL2_gfx -lSDL2_ttf `sdl2-config --cflags --libs`"
while getopts "d" opt; do
case "$opt" in
@@ -14,15 +14,15 @@ shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
if [ "$1" ]; then
- echo "making src/$1"
- file="src/$1"
- clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB `sdl2-config --cflags --libs` -lm $DEBUG
+ printf -- "\n\nmaking %s\n" "$1"
+ file="$1"
+ clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB -lm $DEBUG
else
for file in src/*; do
if [ -f "$file" ]; then
if [ "$file" != ".clangd" ]; then
- echo "making $file"
- clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB `sdl2-config --cflags --libs` -lm $DEBUG
+ printf -- "\n\nmaking %s\n" "$file"
+ clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB -lm $DEBUG
fi
fi
done