HTTPServer/compile

31 lines
495 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..."
g++ -g -c -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..."
2019-09-21 13:08:38 -07:00
g++ -g -o HTTPServer $list -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
2019-09-19 18:04:03 -07:00