From f128ef115bd4d219cfb4f6d71ec2fa3597d7bc36 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Mon, 4 Nov 2024 20:01:02 +0000 Subject: [PATCH] Add build scripts --- build | 3 +++ compile | 9 +++++++++ 2 files changed, 12 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..8095f89 --- /dev/null +++ b/compile @@ -0,0 +1,9 @@ +#!/bin/bash + +CC=clang +CFLAGS="-g -Wall $(pkg-config --cflags sdl2 SDL2_image)" +LIBS="$(pkg-config --libs sdl2 SDL2_image)" +SRC=*.c +OUT=main + +(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)