Implementation of Serice object into structure.
This commit is contained in:
1 parent
a2526dd3ed
commit
2cb1e3e2f2
23 files changed
+278
-293
No files matched your search
@@ -5,17 +5,27 @@ do
|
||||
filename="${file%.*}"
|
||||
list="$list $filename.o"
|
||||
echo -n "Compiling $filename..."
|
||||
g++ -c $file
|
||||
g++ -c $file
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
wait
|
||||
echo $list
|
||||
g++ -o main.cpp $list
|
||||
echo -n "Building static library libServerCore.a..."
|
||||
ar rcs libServerCore.a $list
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
rm *.o
|
||||
rm *~
|
||||
Reference in new issue
Block a user