blob: 329ddd4b20f1d5fef752c22603a443aa7ffb75cd [file] [log] [blame]
#!/bin/bash
TIME=`date +\%F-\%T`
echo
echo "######## ${TIME} ########"
echo
mkdir OBJ
RESULT_PATH="OBJ/"
# MAIN
# clean
make -f Makefile clean
# make
make -f Makefile -j8
# check
# make return code
# check ${driver_name}.ko exist
if [ -f "${RESULT_PATH}ra_nat.o" ]; then
echo "HW_NAT built successfully."
else
echo "HW_NAT built FAILED (ko not found)!"
exit 1
fi
if [ -f "${RESULT_PATH}hook_ext.o" ]; then
echo "HOOK built successfully."
else
echo "HOOK built FAILED (ko not found)!"
exit 1
fi
TIME=`date +\%F-\%T`
echo
echo "######## ${TIME} ########"
echo