32 lines
469 B
Bash
Executable File
32 lines
469 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 executable jet-2.0..."
|
|
g++ -g -o jet-2.0 $list -std=c++23 -L../CoreUtils -lCoreUtils -lmysqlclient -lcrypto
|
|
if [ $? = '0' ]
|
|
then
|
|
echo "OK"
|
|
else
|
|
echo "ERROR"
|
|
exit -1
|
|
fi
|
|
|
|
rm *.o
|
|
rm *~
|