Add build scripts

This commit is contained in:
Abdelrahman Said 2024-01-08 00:14:28 +00:00
parent 1411758aef
commit 050bfa1336
2 changed files with 12 additions and 0 deletions

3
build Executable file
View File

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

9
compile Executable file
View File

@ -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)