Set up basic build process
This commit is contained in:
parent
d8a44f57ed
commit
dd290f4094
14
compile
Normal file
14
compile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CC=clang
|
||||||
|
CFLAGS="-g -Wall -Werror -pedantic -Iinclude $(pkg-config --cflags sdl2)"
|
||||||
|
LIBS="$(pkg-config --libs sdl2)"
|
||||||
|
|
||||||
|
SRC="src/*.c"
|
||||||
|
|
||||||
|
BUILD=build_dir
|
||||||
|
OUT="$BUILD/main"
|
||||||
|
|
||||||
|
mkdir -p $BUILD
|
||||||
|
|
||||||
|
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)
|
Loading…
Reference in New Issue
Block a user