Add build scripts

This commit is contained in:
Abdelrahman Said 2024-01-07 02:19:42 +00:00
parent 13f39b890a
commit cb0bcb4ad4
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 -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)