Update build script
This commit is contained in:
parent
2beb091a44
commit
837cb6e288
6
compile
6
compile
@ -1,8 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
CC=clang
|
CC=clang
|
||||||
CFLAGS="-g -Isrc"
|
WAPP_INCLUDE="$(find intern/wapp/src -type d | xargs -I{} echo -n "-I{} ")"
|
||||||
SRC="src/*.c"
|
WAPP_SRC="$(find intern/wapp/src -type f -name "*.c" | xargs -I{} echo -n "{} ")"
|
||||||
|
CFLAGS="-g -Isrc $WAPP_INCLUDE"
|
||||||
|
SRC="src/*.c $WAPP_SRC"
|
||||||
OUT=tiny
|
OUT=tiny
|
||||||
|
|
||||||
(set -x ; $CC $CFLAGS $SRC -o $OUT)
|
(set -x ; $CC $CFLAGS $SRC -o $OUT)
|
||||||
|
Loading…
Reference in New Issue
Block a user