Reformat compile script
This commit is contained in:
parent
25964d9a3c
commit
8f5bee45c6
19
compile
19
compile
@ -18,18 +18,13 @@ done
|
|||||||
CC=clang
|
CC=clang
|
||||||
CFLAGS="-Wall -Werror -pedantic "
|
CFLAGS="-Wall -Werror -pedantic "
|
||||||
LIBFLAGS="-fPIC -shared"
|
LIBFLAGS="-fPIC -shared"
|
||||||
INCLUDE="\
|
|
||||||
$(find src -type d | xargs -I{} echo -n "-I{} ") \
|
INCLUDE="$(find src -type d | xargs -I{} echo -n "-I{} ")"
|
||||||
"
|
SRC="$(find src -type f -name "*.c" | xargs -I{} echo -n "{} ")"
|
||||||
TEST_INCLUDE="\
|
|
||||||
$(find tests -type d | xargs -I{} echo -n "-I{} ") \
|
TEST_INCLUDE="$(find tests -type d | xargs -I{} echo -n "-I{} ")"
|
||||||
"
|
TEST_SRC="$(find tests -type f -name "*.c" | xargs -I{} echo -n "{} ")"
|
||||||
SRC="\
|
|
||||||
$(find src -type f -name "*.c" | xargs -I{} echo -n "{} ") \
|
|
||||||
"
|
|
||||||
TEST_SRC="\
|
|
||||||
$(find tests -type f -name "*.c" | xargs -I{} echo -n "{} ") \
|
|
||||||
"
|
|
||||||
BUILD_DIR="libwapp-build/posix-$BUILD_TYPE"
|
BUILD_DIR="libwapp-build/posix-$BUILD_TYPE"
|
||||||
if [[ -d $BUILD_DIR ]]; then
|
if [[ -d $BUILD_DIR ]]; then
|
||||||
rm -rf $BUILD_DIR
|
rm -rf $BUILD_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user