Reformat
This commit is contained in:
parent
1c08881dfb
commit
35a33e2fa6
40
compile
40
compile
@ -3,39 +3,39 @@
|
|||||||
BUILD_TYPE="debug"
|
BUILD_TYPE="debug"
|
||||||
|
|
||||||
while [[ $# > 0 ]];do
|
while [[ $# > 0 ]];do
|
||||||
case $1 in
|
case $1 in
|
||||||
--release)
|
--release)
|
||||||
BUILD_TYPE="release"
|
BUILD_TYPE="release"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*|-*|--*)
|
*|-*|--*)
|
||||||
echo "Unknown option $1"
|
echo "Unknown option $1"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
CC=clang
|
CC=clang
|
||||||
|
|
||||||
if [[ $BUILD_TYPE == "release" ]]; then
|
if [[ $BUILD_TYPE == "release" ]]; then
|
||||||
CFLAGS="-O3 -Wall -Werror -pedantic"
|
CFLAGS="-O3 -Wall -Werror -pedantic"
|
||||||
else
|
else
|
||||||
CFLAGS="-g -Wall -Werror -pedantic -fsanitize=address -fsanitize=undefined -DDEBUG"
|
CFLAGS="-g -Wall -Werror -pedantic -fsanitize=address -fsanitize=undefined -DDEBUG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
INCLUDES="\
|
INCLUDES="\
|
||||||
-I$(find ./src -type d | xargs -I{} echo -n "-I{} ") \
|
-I$(find ./src -type d | xargs -I{} echo -n "-I{} ") \
|
||||||
$(find intern/wizapp/src -type d | xargs -I{} echo -n "-I{} ") \
|
$(find intern/wizapp/src -type d | xargs -I{} echo -n "-I{} ") \
|
||||||
$(pkg-config --cflags sdl2) \
|
$(pkg-config --cflags sdl2) \
|
||||||
"
|
"
|
||||||
LIBS="\
|
LIBS="\
|
||||||
-lm \
|
-lm \
|
||||||
-pthread \
|
-pthread \
|
||||||
$(pkg-config --libs sdl2) \
|
$(pkg-config --libs sdl2) \
|
||||||
"
|
"
|
||||||
SRC="\
|
SRC="\
|
||||||
$(find ./src -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 "{} ") \
|
$(find intern/wizapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ") \
|
||||||
"
|
"
|
||||||
OUT=tiffread
|
OUT=tiffread
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user