diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-03-08 21:03:08 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-03-08 21:03:08 -0500 |
| commit | d52cdf58241e476f64be98d2d8b1b03825d7edfd (patch) | |
| tree | 6d26ad5d1ce262706ea7c295460803ce0056d5c4 /make | |
| parent | 444c6642d67e63fc88e5fa1d7c06062d04106b44 (diff) | |
renamed make to build.sh
Diffstat (limited to 'make')
| -rwxr-xr-x | make | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,29 +0,0 @@ -#!/bin/sh - -DEBUG="" -LIB="-Ilib/ -lSDL2_gfx" - -while getopts "d" opt; do - case "$opt" in - d) DEBUG="-Wall -fsanitize=address -g" - ;; - esac -done - -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 -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 - done -fi |
