gfx and 2-2 and multi objects

This commit is contained in:
2026-02-08 20:01:32 -06:00
parent ce57691f96
commit e06ab8f76b
12 changed files with 483 additions and 8 deletions

5
make
View File

@@ -1,7 +1,7 @@
#!/bin/sh
DEBUG=""
LIB="-Ilib/"
LIB="-Ilib/ -lSDL2_gfx"
while getopts "d" opt; do
case "$opt" in
@@ -13,14 +13,15 @@ done
shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
echo making shit
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
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
fi
fi