-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmake.sh
64 lines (55 loc) · 1.95 KB
/
make.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
INCLUDE="-I/mnt/boost/include"\
" -I/mnt/boost/include/boost/threadpool/boost"\
" -I/usr/local/hiredis/include"\
" -I/usr/local/PGSQL/include"\
" -I/usr/local/log4cpp/include"\
" -I../FatCat-Server"
LIBS="/usr/local/hiredis/lib/libhiredis.a"\
" /usr/local/PGSQL/lib/libpq.so"\
" /mnt/boost/lib/libboost_system.a"\
" /mnt/boost/lib/libboost_thread.a"
FLAGS=
rm -fr *.o *.gch ./*/*.gch
echo g++ $FLAGS -c -g *.cpp ./*/*.cpp ./*/*.hpp $INCLUDE -Wno-deprecated
g++ $FLAGS -c -g *.cpp ./*/*.cpp ./*/*.hpp $INCLUDE -Wno-deprecated --std=c++0x
#g++ $FLAGS -c ./log/*.hpp $INCLUDE
#echo g++ $FLAGS -c ./log/*.hpp $INCLUDE
#
#g++ $FLAGS -c ./Game/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./Game/*.cpp $INCLUDE
#
#g++ $FLAGS -c ./GameAttack/*.* $INCLUDE
#echo g++ $FLAGS -c ./GameAttack/*.c* $INCLUDE
#
#g++ $FLAGS -c ./GameChat/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./GameChat/*.cpp $INCLUDE
#
#g++ $FLAGS -c ./GameInterchange/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./GameInterchange/*.cpp $INCLUDE
#g++ $FLAGS -c ./GameTask/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./GameTask/*.cpp $INCLUDE
#
#g++ $FLAGS -c ./memManage/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./memManage/*.cpp $INCLUDE
#
#g++ $FLAGS -c ./Monster/* $INCLUDE
#echo g++ $FLAGS -c ./Monster/*.* $INCLUDE
#
#g++ $FLAGS -c ./NetWork/* $INCLUDE
#echo g++ $FLAGS -c ./NetWork/*.cpp $INCLUDE
#
#g++ $FLAGS -c ./OperationGoods/* $INCLUDE
#echo g++ $FLAGS -c ./OperationGoods/*.cpp $INCLUDE
#g++ $FLAGS -c ./OperationPostgres/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./OperationPostgres/*.cpp $INCLUDE
#
#g++ $FLAGS -c ./PlayerLogin/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./PlayerLogin/*.cpp $INCLUDE
#
#g++ $FLAGS -c ./TeamFriend/*.cpp $INCLUDE
#echo g++ $FLAGS -c ./TeamFriend/*.cpp $INCLUDE
#g++ *.o $LIBS -o Server -lpthread -lrt
echo g++ *.o $LIBS -o Server -lpthread -lrt -lexpat -L /usr/local/log4cpp/lib -llog4cpp
g++ *.o $LIBS -o Server -lpthread -lrt -lexpat -L /usr/local/log4cpp/lib -llog4cpp
echo exit successfully!