From cb0bcb4ad491bf55c140953ce72e91e6c08c99f2 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 7 Jan 2024 02:19:42 +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..8e1e5c1 --- /dev/null +++ b/build @@ -0,0 +1,3 @@ +#!/bin/bash + +bear -- ./compile diff --git a/compile b/compile new file mode 100755 index 0000000..4680679 --- /dev/null +++ b/compile @@ -0,0 +1,9 @@ +#!/bin/bash + +CC=clang +CFLAGS="-g -I./intern -I./include $(pkg-config --cflags sdl2 SDL2_image SDL2_ttf)" +LIBS="$(pkg-config --libs sdl2 SDL2_image SDL2_ttf) -lm" +SRC=src/*.c +OUT=player + +(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)