diff --git a/compile b/compile index a980492..d2fbee2 100755 --- a/compile +++ b/compile @@ -18,18 +18,13 @@ done CC=clang CFLAGS="-Wall -Werror -pedantic " LIBFLAGS="-fPIC -shared" -INCLUDE="\ - $(find src -type d | xargs -I{} echo -n "-I{} ") \ -" -TEST_INCLUDE="\ - $(find tests -type d | xargs -I{} echo -n "-I{} ") \ -" -SRC="\ - $(find src -type f -name "*.c" | xargs -I{} echo -n "{} ") \ -" -TEST_SRC="\ - $(find tests -type f -name "*.c" | xargs -I{} echo -n "{} ") \ -" + +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_SRC="$(find tests -type f -name "*.c" | xargs -I{} echo -n "{} ")" + BUILD_DIR="libwapp-build/posix-$BUILD_TYPE" if [[ -d $BUILD_DIR ]]; then rm -rf $BUILD_DIR