Add build scripts

This commit is contained in:
2024-01-14 02:09:56 +00:00
parent 6ce1707852
commit fb707e1ce8
2 changed files with 12 additions and 0 deletions

9
compile Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
CC=clang
CFLAGS="-g -Wall -Iintern $(pkg-config --cflags sdl2)"
LIBS="$(pkg-config --libs sdl2) -lm"
SRC=*.c
OUT=main
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)