ServerCore/compile
2024-07-11 15:45:33 -07:00

36 lines
530 B
Bash
Executable File

#!/bin/bash
for file in *.cpp
do
filename="${file%.*}"
list="$list $filename.o"
echo -n "Compiling $filename..."
g++ -g -c -std=c++23 -I../CoreUtils $file &
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
fi
done
wait
echo -n "Building static library libServerCore.a..."
ar rcs libServerCore.a $list
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
fi
echo -n "Building library documentation manual..."
doxygen doxygen.sty >/dev/null 2>/dev/null
echo "OK"
rm *.o
rm *~