2017-07-14 21:32:37 +08:00
|
|
|
ccmips=mips-openwrt-linux-g++
|
2017-08-04 17:12:23 +08:00
|
|
|
FLAGS=-Wall -Wextra -Wno-unused-variable -Wno-unused-parameter
|
|
|
|
FLAGS2= -O3
|
2017-07-14 21:32:37 +08:00
|
|
|
all:
|
2017-07-29 20:32:26 +08:00
|
|
|
sudo killall udp2raw||true
|
|
|
|
sleep 0.2
|
2017-08-07 13:58:42 +08:00
|
|
|
g++ main.cpp -o udp2raw -static -ggdb -I. lib/aes.c lib/md5.c encrypt.cpp log.cpp network.cpp common.cpp -lrt -std=c++11 ${FLAGS} ${FLAGS2}
|
|
|
|
# ${ccmips} main.cpp -o udp2raw_ar71xx -lrt -I. lib/aes.c lib/md5.c encrypt.cpp log.cpp network.cpp common.cpp -std=c++11 ${FLAGS} ${FLAGS2}
|
2017-08-05 20:44:48 +08:00
|
|
|
fast:
|
|
|
|
sudo killall udp2raw||true
|
|
|
|
sleep 0.2
|
2017-08-07 13:58:42 +08:00
|
|
|
g++ main.cpp -o udp2raw -ggdb -I. lib/aes.c lib/md5.c encrypt.cpp log.cpp network.cpp common.cpp -lrt -std=c++11 ${FLAGS}
|
2017-07-24 14:22:01 +08:00
|
|
|
|
2017-07-14 21:32:37 +08:00
|
|
|
|
2017-08-04 17:12:23 +08:00
|
|
|
debug:
|
2017-08-07 13:58:42 +08:00
|
|
|
g++ main.cpp -o udp2raw -static -ggdb -I. -Ilib lib/aes.c lib/md5.c encrypt.cpp log.cpp network.cpp common.cpp -lrt -std=c++11 ${FLAGS} -Wformat-nonliteral -D MY_DEBUG
|
|
|
|
|
|
|
|
release:
|
|
|
|
g++ main.cpp -o udp2raw_amd64 -static -ggdb -I. lib/aes.c lib/md5.c encrypt.cpp log.cpp network.cpp common.cpp -lrt -std=c++11 ${FLAGS} ${FLAGS2}
|
|
|
|
${ccmips} main.cpp -o udp2raw_ar71xx -lrt -I. lib/aes.c lib/md5.c encrypt.cpp log.cpp network.cpp common.cpp -std=c++11 ${FLAGS} ${FLAGS2}
|
|
|
|
|