diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-02-08 20:01:32 -0600 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-02-08 20:01:32 -0600 |
| commit | e06ab8f76be21b866207a708f1336a5c1a53f149 (patch) | |
| tree | bb0e53dd6b0fd3906ab53e0b292e56c735a7cbec /make | |
| parent | ce57691f9631e5a08a82221634898b5ce58b7a5e (diff) | |
gfx and 2-2 and multi objects
Diffstat (limited to 'make')
| -rwxr-xr-x | make | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
