22 lines
470 B
Bash
Executable File
22 lines
470 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CC=clang
|
|
CFLAGS="-g -Wall $(pkg-config --cflags sdl2)"
|
|
LIBS="$(pkg-config --libs sdl2) -lm"
|
|
INCLUDE="\
|
|
-Iinclude \
|
|
-Iintern/wizapp/aliases \
|
|
-Iintern/wizapp/cpath/include \
|
|
-Iintern/wizapp/dstr/include \
|
|
$(find intern/wizapp/mem/include -type d | xargs -I{} echo -n "-I{} ") \
|
|
"
|
|
SRC="\
|
|
intern/wizapp/cpath/src/*.c \
|
|
intern/wizapp/dstr/src/*.c \
|
|
intern/wizapp/mem/src/*/*.c \
|
|
src/*.c \
|
|
"
|
|
OUT=main
|
|
|
|
(set -x ; $CC $CFLAGS $INCLUDE $LIBS $SRC -o $OUT)
|