19 lines
1.1 KiB
Makefile
Raw Normal View History

2017-08-10 22:11:23 +08:00
cc_cross=/home/wangyu/Desktop/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++
2017-08-09 17:15:35 +08:00
FLAGS=-Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -ggdb
2017-08-09 09:27:47 +08:00
FLAGS2= -O3
2017-08-08 17:10:38 +08:00
all:
2017-08-09 17:15:35 +08:00
g++ main.cpp common.cpp log.cpp -I. -o speeder -static -lrt -std=c++11 ${FLAGS} ${FLAGS2}
2017-08-08 17:10:38 +08:00
release:
2017-08-09 17:15:35 +08:00
g++ main.cpp common.cpp log.cpp -I. -o speeder_amd64 -static -lrt -std=c++11 ${FLAGS} ${FLAGS2}
g++ -m32 main.cpp common.cpp log.cpp -I. -o speeder_x86 -static -lrt -std=c++11 ${FLAGS} ${FLAGS2}
2017-08-10 22:11:23 +08:00
${cc_cross} main.cpp common.cpp log.cpp -I. -o speeder_ar71xx -lrt -std=c++11 ${FLAGS} ${FLAGS2}
2017-08-09 17:15:35 +08:00
tar -zcvf udp_speeder_binaries.tar.gz speeder_amd64 speeder_x86 speeder_ar71xx
cross:
2017-08-10 22:11:23 +08:00
${cc_cross} main.cpp common.cpp log.cpp -I. -o speeder_cross -lrt -std=c++11 ${FLAGS} ${FLAGS2}
2017-08-09 17:15:35 +08:00
2017-08-09 09:27:47 +08:00
debug:
2017-08-09 17:15:35 +08:00
g++ main.cpp common.cpp log.cpp -I. -o speeder -static -lrt -std=c++11 ${FLAGS} -Wformat-nonliteral -D MY_DEBUG
2017-08-08 17:10:38 +08:00
#g++ forward.cpp aes.c -o forward -static
# ${ccarm} forward.cpp aes.c -o forwardarm -static -lgcc_eh