Update build scripts
This commit is contained in:
8
compile
8
compile
@@ -4,11 +4,13 @@ CC=clang
|
||||
CFLAGS="-g -Wall -Werror -pedantic -Iinclude $(pkg-config --cflags sdl2)"
|
||||
LIBS="$(pkg-config --libs sdl2)"
|
||||
|
||||
SRC="src/*.c"
|
||||
RAYTRACER_SRC="src/window/*.c \
|
||||
src/raytracer/*.c \
|
||||
"
|
||||
|
||||
BUILD=build_dir
|
||||
OUT="$BUILD/main"
|
||||
RAYTRACER_OUT="$BUILD/raytracer"
|
||||
|
||||
mkdir -p $BUILD
|
||||
|
||||
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)
|
||||
(set -x ; $CC $CFLAGS $LIBS $RAYTRACER_SRC -o $RAYTRACER_OUT)
|
||||
|
||||
Reference in New Issue
Block a user