mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-02-01 04:39:35 +08:00
update makefile
This commit is contained in:
parent
49f6b93cba
commit
df58e3f914
3
main.cpp
3
main.cpp
@ -51,11 +51,10 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const int mode_tcp=0;
|
const int mode_tcp=0;
|
||||||
const int mode_udp=1;
|
const int mode_udp=1;
|
||||||
const int mode_icmp=2;
|
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";
|
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;
|
uint32_t local_address_uint32,remote_address_uint32,source_address_uint32;
|
||||||
|
3
makefile
3
makefile
@ -3,5 +3,6 @@ all:
|
|||||||
killall raw||true
|
killall raw||true
|
||||||
sleep 1
|
sleep 1
|
||||||
g++ main.cpp -o raw -static -lrt -ggdb -I. aes.c md5.c encrypt.cpp -O3
|
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++
|
${ccmips} -O3 main.cpp -o rawmips -lrt -I. aes.c md5.c encrypt.cpp
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user