From 2f374005654ac3865833bfccf2cde6930a8f6472 Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Sun, 8 Mar 2026 21:02:19 -0500 Subject: renamed make to build.sh --- README.md | 2 +- build.sh | 17 +++++++++++++++++ make | 17 ----------------- 3 files changed, 18 insertions(+), 18 deletions(-) create mode 100755 build.sh delete mode 100755 make diff --git a/README.md b/README.md index 770e9bc..0af0eca 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This is a small C SDL2 project making physics objects react to audio ## building -simply run ./make +simply run ./build.sh there is no install ## usage diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..2fcfe88 --- /dev/null +++ b/build.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +DEBUG="" +LIB="-Ilib/ -lSDL2_gfx $(pkg-config --cflags --libs libpipewire-0.3) -I/usr/include/spa-0.2" + +while getopts "d" opt; do + case "$opt" in + d) DEBUG="-Wall -fsanitize=address -g" + ;; + esac +done + +shift $((OPTIND-1)) +[ "${1:-}" = "--" ] && shift + +printf "\n\nmaking project\n" +clang -o "audio_reactive" src/main.c $LIB `sdl2-config --cflags --libs` -lm $DEBUG diff --git a/make b/make deleted file mode 100755 index 2fcfe88..0000000 --- a/make +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -DEBUG="" -LIB="-Ilib/ -lSDL2_gfx $(pkg-config --cflags --libs libpipewire-0.3) -I/usr/include/spa-0.2" - -while getopts "d" opt; do - case "$opt" in - d) DEBUG="-Wall -fsanitize=address -g" - ;; - esac -done - -shift $((OPTIND-1)) -[ "${1:-}" = "--" ] && shift - -printf "\n\nmaking project\n" -clang -o "audio_reactive" src/main.c $LIB `sdl2-config --cflags --libs` -lm $DEBUG -- cgit v1.3