1
0
wangyu- 8 жил өмнө
parent
commit
3e97eecccd
2 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 1 1
      main.cpp
  2. 2 2
      makefile

+ 1 - 1
main.cpp

@@ -72,7 +72,7 @@ static void print_help()
 
 
 int main(int argc, char *argv[])
 int main(int argc, char *argv[])
 {
 {
-	//working_mode=tunnel_mode;
+	working_mode=tun_dev_mode;
 
 
 	assert(sizeof(u64_t)==8);
 	assert(sizeof(u64_t)==8);
 	assert(sizeof(i64_t)==8);
 	assert(sizeof(i64_t)==8);

+ 2 - 2
makefile

@@ -18,7 +18,7 @@ TARGETS=amd64 arm mips24kc_be x86  mips24kc_le
 
 
 TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/tinyvpn_\1/g'`
 TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/tinyvpn_\1/g'`
 
 
-all:git_version sub
+all:git_version init
 	rm -f ${NAME}
 	rm -f ${NAME}
 	${cc_local}   -o ${NAME}      ${INCLUDE}  ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3
 	${cc_local}   -o ${NAME}      ${INCLUDE}  ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3
 debug: git_version
 debug: git_version
@@ -28,7 +28,7 @@ debug2: git_version
 	rm -f ${NAME}
 	rm -f ${NAME}
 	${cc_local}   -o ${NAME}          -I. ${SOURCES} ${FLAGS} -lrt -Wformat-nonliteral -ggdb
 	${cc_local}   -o ${NAME}          -I. ${SOURCES} ${FLAGS} -lrt -Wformat-nonliteral -ggdb
 
 
-sub:
+init:
 	git submodule init
 	git submodule init
 	git submodule update
 	git submodule update