From 35a33e2fa6e74e219a7117132f14df5476329c67 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 26 May 2024 17:56:32 +0100 Subject: [PATCH] Reformat --- compile | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/compile b/compile index 52386c0..b8efd27 100755 --- a/compile +++ b/compile @@ -3,39 +3,39 @@ BUILD_TYPE="debug" while [[ $# > 0 ]];do - case $1 in - --release) - BUILD_TYPE="release" - shift - ;; - *|-*|--*) - echo "Unknown option $1" - exit 1 - ;; - esac + case $1 in + --release) + BUILD_TYPE="release" + shift + ;; + *|-*|--*) + echo "Unknown option $1" + exit 1 + ;; + esac done CC=clang if [[ $BUILD_TYPE == "release" ]]; then - CFLAGS="-O3 -Wall -Werror -pedantic" + CFLAGS="-O3 -Wall -Werror -pedantic" else - CFLAGS="-g -Wall -Werror -pedantic -fsanitize=address -fsanitize=undefined -DDEBUG" + CFLAGS="-g -Wall -Werror -pedantic -fsanitize=address -fsanitize=undefined -DDEBUG" fi INCLUDES="\ - -I$(find ./src -type d | xargs -I{} echo -n "-I{} ") \ - $(find intern/wizapp/src -type d | xargs -I{} echo -n "-I{} ") \ - $(pkg-config --cflags sdl2) \ + -I$(find ./src -type d | xargs -I{} echo -n "-I{} ") \ + $(find intern/wizapp/src -type d | xargs -I{} echo -n "-I{} ") \ + $(pkg-config --cflags sdl2) \ " LIBS="\ - -lm \ - -pthread \ - $(pkg-config --libs sdl2) \ + -lm \ + -pthread \ + $(pkg-config --libs sdl2) \ " SRC="\ - $(find ./src -name "*.c" | xargs -I{} echo -n "{} ") \ - $(find intern/wizapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ") \ + $(find ./src -name "*.c" | xargs -I{} echo -n "{} ") \ + $(find intern/wizapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ") \ " OUT=tiffread