Bunch of changes.
This commit is contained in:
1 parent
0a4d17e6e6
commit
641368ea85
15 files changed
+441
-1327
No files matched your search
@@ -1,23 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
for file in *.cpp
|
||||
do
|
||||
filename="${file%.*}"
|
||||
list="$list $filename.o"
|
||||
echo -n "Compiling $filename..."
|
||||
g++ -g -c -std=c++17 -I../CoreUtils -I../ServerCore $file
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
do
|
||||
filename="${file%.*}"
|
||||
list="$list $filename.o"
|
||||
echo -n "Compiling $filename..."
|
||||
g++ -g -c -std=c++17 -I../CoreUtils -I../ServerCore $file
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
done
|
||||
|
||||
wait
|
||||
echo -n "Building executable BMAMail..."
|
||||
g++ -g -std=c++17 -o BMAMail $list -L../CoreUtils -lCoreUtils -L../ServerCore -lServerCore -lpthread -luuid -lssl -lcrypto -lresolv
|
||||
g++ -g -std=c++17 -o BMAMail $list -I../CoreUtils -I../ServerCore -L../CoreUtils -lCoreUtils -L../ServerCore -lServerCore -lpthread -luuid -lssl -lcrypto -lresolv
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
@@ -25,6 +25,7 @@ else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
rm *~
|
||||
rm *.o
|
||||
|
||||
|
||||
Reference in new issue
Block a user