forked from libinzhangyuan/asio_kcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallmake.sh
31 lines (28 loc) · 1.63 KB
/
allmake.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
OLD_PWD="$( pwd )"
BOOST_LIB_PATH=/usr/local/lib
export BOOST_LIB_PATH
BOOST_INC_PATH=/usr/local/include
export BOOST_INC_PATH
`rm -f client_with_asio/client_with_asio 2>/dev/null ;\
rm -f server/server 2>/dev/null ;\
rm -f server_lib/asio_kcp_server.a 2>/dev/null;\
rm -f asio_kcp_utest/asio_kcp_utest 2>/dev/null;\
rm -f asio_kcp_client_utest/asio_kcp_client_utest 2>/dev/null;\
`
echo "" && echo "" && echo "[-------------------------------]" && echo " essential" && echo "[-------------------------------]" && \
cd ./essential/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " client_lib" && echo "[-------------------------------]" && \
cd ../client_lib/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " server_lib" && echo "[-------------------------------]" && \
cd ../server_lib/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " server" && echo "[-------------------------------]" && \
cd ../server/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " client_with_asio" && echo "[-------------------------------]" && \
cd ../client_with_asio/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " asio_kcp_utest" && echo "[-------------------------------]" && \
cd ../asio_kcp_utest/ && make && \
echo "" && echo "" && echo "[-------------------------------]" && echo " kcp_client_utest" && echo "[-------------------------------]" && \
cd ../asio_kcp_client_utest/ && make && \
echo ""
# restore old path.
cd $OLD_PWD