Add build scripts

This commit is contained in:
Abdelrahman Said 2024-04-20 16:01:21 +01:00
parent 2fde4231de
commit b0d7098add
2 changed files with 14 additions and 0 deletions

3
build Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
bear -- ./compile $@

11
compile Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
CC=clang
CFLAGS="-g -Wall -Werror -pedantic -fsanitize=address -fsanitize=undefined"
INCLUDES="-Isrc"
SRC="\
./src/*.c \
"
OUT=tiffread
( set -x ; $CC $CFLAGS $INCLUDES $SRC -o $OUT )