Reorganise code
This commit is contained in:
1 parent
ff207a458e
commit
fbf3f17b8f
17 files changed
+4
-2
No files matched your search
@@ -3,9 +3,11 @@
|
|||||||
CC=clang
|
CC=clang
|
||||||
WAPP_INCLUDE="$(find intern/wapp/src -type d | xargs -I{} echo -n "-I{} ")"
|
WAPP_INCLUDE="$(find intern/wapp/src -type d | xargs -I{} echo -n "-I{} ")"
|
||||||
WAPP_SRC="$(find intern/wapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ")"
|
WAPP_SRC="$(find intern/wapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ")"
|
||||||
CFLAGS="-g -Isrc $WAPP_INCLUDE"
|
TINYRENDER_INCLUDE="$(find src -type d | xargs -I{} echo -n "-I{} ")"
|
||||||
|
TINYRENDER_SRC="$(find src -type f -name "*.c" | xargs -I{} echo -n "{} ")"
|
||||||
|
CFLAGS="-g $TINYRENDER_INCLUDE $WAPP_INCLUDE"
|
||||||
LIBS="-lm"
|
LIBS="-lm"
|
||||||
SRC="src/*.c $WAPP_SRC"
|
SRC="$TINYRENDER_SRC $WAPP_SRC"
|
||||||
OUT=tiny
|
OUT=tiny
|
||||||
|
|
||||||
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)
|
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user