Get rid of codelite crap.
This commit is contained in:
1 parent
e7b4ae818f
commit
10fa23bba3
8 files changed
+21
-309
No files matched your search
@@ -1,24 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
#for file in *.cpp
|
||||
#do
|
||||
# filename="${file%.*}"
|
||||
# list="$list $filename.o"
|
||||
# echo -n "Compiling $filename..."
|
||||
# g++ -c $file -I../ServerCore
|
||||
# if [ $? = '0' ]
|
||||
# then
|
||||
# echo "OK"
|
||||
# else
|
||||
# echo "ERROR"
|
||||
# exit -1
|
||||
# fi
|
||||
for file in *.cpp
|
||||
do
|
||||
filename="${file%.*}"
|
||||
list="$list $filename.o"
|
||||
echo -n "Compiling $filename..."
|
||||
g++ -c -I../CoreUtils -I../ServerCore $file &
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
wait
|
||||
echo -n "Building static library libServerCore.a..."
|
||||
ar rcs libServerCore.a $list
|
||||
echo -n "Building executable HTTPServer..."
|
||||
echo $list
|
||||
g++ -o HTTPServer -I../CoreUtils -I../ServerCore -L../CoreUtils -L../ServerCore -lCoreUtils -lServerCore $list
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
@@ -27,5 +28,4 @@ else
|
||||
exit -1
|
||||
fi
|
||||
|
||||
rm *.o
|
||||
rm *~
|
||||
|
||||
Reference in new issue
Block a user