Add build scripts

This commit is contained in:
Abdelrahman Said 2024-11-04 20:01:02 +00:00
parent d1f20f3167
commit f128ef115b
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 -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)