Add basic build scripts
This commit is contained in:
parent
99c6dbeecf
commit
0ed130b659
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cache
|
||||
compile_commands.json
|
||||
main
|
3
build
Executable file
3
build
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
bear -- ./compile $@
|
9
compile
Executable file
9
compile
Executable 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)
|
Loading…
x
Reference in New Issue
Block a user