20 lines
413 B
Bash
20 lines
413 B
Bash
#!/bin/bash
|
|
|
|
source build_scripts/init.sh
|
|
|
|
print "${CYAN}===============[build]================\n"
|
|
clear_dir "$OUTDIR"
|
|
clear_dir "$OBJDIR"
|
|
|
|
cd kerep
|
|
if [ ! -f "bin/kerep.a" ]; then
|
|
make build_static_lib
|
|
fi
|
|
cp bin/kerep.a ../obj/
|
|
printf "${GREEN}copied ${CYAN}kerep.a\n"
|
|
cd ..
|
|
|
|
compile_c "$BUILD_C_ARGS" "$SRC_C"
|
|
compile_cpp "$BUILD_CPP_ARGS" "$SRC_CPP"
|
|
link "$BUILD_CPP_ARGS $BUILD_LINKER_ARGS" "$BUILD_FILE"
|