HTTPServer/compile

33 lines
525 B
Plaintext
Raw Normal View History

2019-02-24 09:36:42 -08:00
#!/bin/bash
2019-09-19 18:04:03 -07:00
for file in *.cpp
do
filename="${file%.*}"
2020-11-07 17:31:08 -08:00
list="$list $filename.o"
2019-09-19 18:04:03 -07:00
echo -n "Compiling $filename..."
2024-07-09 17:09:19 -07:00
g++ -g -c -std=c++23 -I../CoreUtils -I../ServerCore $file &
2019-09-19 18:04:03 -07:00
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
2020-11-07 17:31:08 -08:00
fi
2019-02-24 09:36:42 -08:00
done
wait
2019-09-19 18:04:03 -07:00
echo -n "Building executable HTTPServer..."
2024-07-09 17:09:19 -07:00
g++ -g -o HTTPServer $list -std=c++23 -L../CoreUtils -lCoreUtils -L../ServerCore -lServerCore -lpthread -luuid -lssl -lcrypto
2019-02-24 09:36:42 -08:00
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
2020-11-07 17:31:08 -08:00
fi
2019-02-24 09:36:42 -08:00
2022-06-29 11:38:44 -07:00
rm *.o
2019-09-19 18:04:03 -07:00