From cadeeb323d72ed078753f7e49784ff72ec7d887f Mon Sep 17 00:00:00 2001 From: HiveBeats Date: Tue, 8 Aug 2023 13:30:01 +0400 Subject: [PATCH] feat: universal build script --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index bbb3c38..caa2865 100644 --- a/build.sh +++ b/build.sh @@ -1,3 +1,5 @@ #!/bin/bash CC="${CXX:-c++}" -$CC -Wall -std=c++17 -I./inc/ ./src/SeeSynth.cpp ./src/Application.cpp ./src/Renderer.cpp ./src/Synth.cpp ./src/Oscillator.cpp -lm -lraylib -o ./bin/main +LL="-lm -lraylib" +FLAGS="-Wall -std=c++17 -I./inc/" +$CC $FLAGS $(find ./src -type f -iregex ".*\.cpp") $LL -o ./bin/main