From df58e3f914428ffbc9371d4a15e9ff3377eeb63b Mon Sep 17 00:00:00 2001 From: wangyu Date: Mon, 24 Jul 2017 14:22:01 +0800 Subject: [PATCH] update makefile --- main.cpp | 3 +-- makefile | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index c47664b..a9b87e4 100755 --- a/main.cpp +++ b/main.cpp @@ -51,11 +51,10 @@ using namespace std; - const int mode_tcp=0; const int mode_udp=1; const int mode_icmp=2; -int raw_mode=mode_udp; +int raw_mode=mode_tcp; char local_address[100]="0.0.0.0", remote_address[100]="255.255.255.255",source_address[100]="0.0.0.0"; uint32_t local_address_uint32,remote_address_uint32,source_address_uint32; diff --git a/makefile b/makefile index d454186..a5aacfc 100755 --- a/makefile +++ b/makefile @@ -2,6 +2,7 @@ ccmips=mips-openwrt-linux-g++ all: killall raw||true sleep 1 - g++ main.cpp -o raw -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3 -# ${ccmips} -std=c++11 main.cpp -o rawmips -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3 -lstdc++ + g++ main.cpp -o raw -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3 + ${ccmips} -O3 main.cpp -o rawmips -lrt -I. aes.c md5.c encrypt.cpp +