From be1b25e9543994c3271d1ad4d0cda8085f8ec253 Mon Sep 17 00:00:00 2001 From: dosgo Date: Sat, 30 Apr 2016 10:38:11 +0800 Subject: [PATCH] . --- nativebuildv2.sh | 31 +++++++++++++++++++++++++++++++ ngrok-c.depend | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 nativebuildv2.sh diff --git a/nativebuildv2.sh b/nativebuildv2.sh new file mode 100644 index 00000000..3e0bf4d7 --- /dev/null +++ b/nativebuildv2.sh @@ -0,0 +1,31 @@ + +export PATH=$PATH:'/home/dosgo/OpenWrt-SDK/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin' +export STAGING_DIR="/home/dosgo/OpenWrt-SDK/staging_dir" +mkdir build-mips +rm -rf build-mips/main.o +rm -rf build-mips/cJSON.o +rm -rf build-mips/sendmsg.o +rm -rf build-mips/sslbio.o +rm -rf build-mips/nonblocking.o +rm -rf build-mips/openssldl.o +rm -rf build-mips/ngrokc + +CC=g++ +YH="-Wall -fexceptions -O2 -DOPENSSL=1 -DOPENSSLDL=1" +$CC $YH -c sendmsg.cpp -o build-mips/sendmsg.o +$CC $YH -c cJSON.c -o build-mips/cJSON.o +$CC $YH -c main.cpp -o build-mips/main.o +$CC $YH -c nonblocking.cpp -o build-mips/nonblocking.o +$CC $YH -c sslbio.cpp -o build-mips/sslbio.o +$CC $YH -c openssldl.cpp -o build-mips/openssldl.o +$CC $YH -c ngrok.cpp -o build-mips/ngrok.o +$CC -s build-mips/main.o build-mips/cJSON.o build-mips/sendmsg.o build-mips/nonblocking.o build-mips/ngrok.o build-mips/sslbio.o build-mips/openssldl.o -o build-mips/ngrokc -ldl + + + + + + + + + diff --git a/ngrok-c.depend b/ngrok-c.depend index 9a437c81..6ad348df 100644 --- a/ngrok-c.depend +++ b/ngrok-c.depend @@ -1372,7 +1372,7 @@ "sendmsg.h" -1461853450 source:e:\dosgo\c\ngrok-c\main.cpp +1461947257 source:e:\dosgo\c\ngrok-c\main.cpp "config.h"