a janky init

This commit is contained in:
2026-02-08 04:07:36 -06:00
commit 82f4a3b8ac
10 changed files with 360 additions and 0 deletions

28
make Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
DEBUG=""
LIB="-Ilib/"
while getopts "d" opt; do
case "$opt" in
d) DEBUG="-Wall -fsanitize=address -g"
;;
esac
done
shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
echo making shit
if [[ "$1" ]]; then
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
clang -o bin/$(basename $file | sed 's/.c$//') $file $LIB `sdl2-config --cflags --libs` -lm $DEBUG
fi
fi
done
fi