Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dosgo committed Apr 30, 2016
1 parent dd2d699 commit be1b25e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions nativebuildv2.sh
Original file line number Diff line number Diff line change
@@ -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









2 changes: 1 addition & 1 deletion ngrok-c.depend
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@
"sendmsg.h"
<stdlib.h>

1461853450 source:e:\dosgo\c\ngrok-c\main.cpp
1461947257 source:e:\dosgo\c\ngrok-c\main.cpp
"config.h"
<string.h>
<stdio.h>
Expand Down

0 comments on commit be1b25e

Please sign in to comment.