From b0d7098adda916f576259573233fa6df6a04c834 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 20 Apr 2024 16:01:21 +0100 Subject: [PATCH] Add build scripts --- build | 3 +++ compile | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 build create mode 100755 compile diff --git a/build b/build new file mode 100755 index 0000000..cd3a103 --- /dev/null +++ b/build @@ -0,0 +1,3 @@ +#!/bin/bash + +bear -- ./compile $@ diff --git a/compile b/compile new file mode 100755 index 0000000..574b109 --- /dev/null +++ b/compile @@ -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 )