aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rwxr-xr-xmake29
1 files changed, 0 insertions, 29 deletions
diff --git a/make b/make
deleted file mode 100755
index 2c3d3b9..0000000
--- a/make
+++ /dev/null
@@ -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