wangyu-udp2raw/makefile

17 lines
825 B
Makefile
Raw Normal View History

2017-07-14 21:32:37 +08:00
ccmips=mips-openwrt-linux-g++
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-05 21:04:47 +08:00
g++ main.cpp -o udp2raw_amd64 -static -ggdb -I. -Ilib 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. -Ilib 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-05 21:04:47 +08:00
g++ main.cpp -o udp2raw_amd64 -ggdb -I. -Ilib 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
debug:
2017-08-05 21:04:47 +08:00
g++ main.cpp -o udp2raw_amd64 -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