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..666bc9f --- /dev/null +++ b/compile @@ -0,0 +1,9 @@ +#!/bin/bash + +CC=clang +CFLAGS="-g $(pkg-config --cflags sdl2 SDL2_image) -Iinclude -Iintern" +LIBS="$(pkg-config --libs sdl2 SDL2_image) -lm" +SRC="src/*.c" +OUT=main + +(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)