Add basic build scripts

This commit is contained in:
Abdelrahman Said 2024-01-14 16:50:15 +00:00
parent 99c6dbeecf
commit 0ed130b659
3 changed files with 15 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache
compile_commands.json
main

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)"
LIBS="$(pkg-config --libs sdl2)"
SRC=main.c
OUT=main
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)