build scripts fixes
This commit is contained in:
parent
5b9d4f111f
commit
8f36aac35e
@ -7,9 +7,7 @@ clear_dir "$OUTDIR"
|
||||
clear_dir "$OBJDIR"
|
||||
|
||||
cd kerep
|
||||
if [ ! -f "bin/kerep.a" ]; then
|
||||
make build_static_lib
|
||||
fi
|
||||
make build_static_lib
|
||||
cp bin/kerep.a ../obj/
|
||||
printf "${GREEN}copied ${CYAN}kerep.a\n"
|
||||
cd ..
|
||||
|
||||
@ -7,13 +7,11 @@ clear_dir "$OUTDIR"
|
||||
clear_dir "$OBJDIR"
|
||||
|
||||
cd kerep
|
||||
if [ ! -f "bin/kerep.a" ]; then
|
||||
make build_static_lib_dbg
|
||||
fi
|
||||
make build_static_lib_dbg
|
||||
cp bin/kerep.a ../obj/
|
||||
printf "${GREEN}copied ${CYAN}kerep.a\n"
|
||||
cd ..
|
||||
|
||||
compile_c "$BUILD_DBG_C_ARGS" "$SRC_C"
|
||||
compile_cpp "$BUILD_DBG_CPP_ARGS" "$SRC_CPP"
|
||||
link "$BUILD_DBG_CPP_ARGS $BUILD_DBG_LINKER_ARGS" "$BUILD_FILE"
|
||||
link "$BUILD_DBG_CPP_ARGS $BUILD_DBG_LINKER_ARGS" "$BUILD_DBG_FILE"
|
||||
|
||||
@ -19,7 +19,7 @@ BUILD_CPP_ARGS="$BUILD_C_ARGS"
|
||||
BUILD_LINKER_ARGS=""
|
||||
|
||||
# build_dbg
|
||||
BUILD_DBG_FILE="$TEST_FILE.dbg"
|
||||
BUILD_DBG_FILE="$BUILD_FILE.dbg"
|
||||
BUILD_DBG_C_ARGS="-O0 -g"
|
||||
BUILD_DBG_CPP_ARGS="$BUILD_DBG_C_ARGS"
|
||||
BUILD_DBG_LINKER_ARGS=""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user