aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-09-12 19:28:17 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-09-12 19:28:17 -0500
commit4570bef95ea1427075b56474b81fb1ef7cec16f0 (patch)
treee70d9d5c9bcf221b7baf27f735e8318e8887875d /build.sh
parent433c49ac031ab9febe0602936dce551af8c40a25 (diff)
moved sdl load to LIB var in build.shHEADmain
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index bfc4527..ee40cdd 100755
--- a/build.sh
+++ b/build.sh
@@ -1,7 +1,7 @@
#!/bin/sh
DEBUG=""
-LIB="-Ilib/ -lSDL2_gfx -lSDL2_ttf"
+LIB="-Ilib/ -lSDL2_gfx -lSDL2_ttf `sdl2-config --cflags --libs`"
while getopts "d" opt; do
case "$opt" in
@@ -16,13 +16,13 @@ shift $((OPTIND-1))
if [ "$1" ]; then
printf -- "\n\nmaking %s\n" "$1"
file="$1"
- clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB `sdl2-config --cflags --libs` -lm $DEBUG
+ 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
printf -- "\n\nmaking %s\n" "$file"
- clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB `sdl2-config --cflags --libs` -lm $DEBUG
+ clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB -lm $DEBUG
fi
fi
done