فهرست منبع

added nolimit targets in makefile

wangyu- 7 سال پیش
والد
کامیت
ac3dd5c488
3فایلهای تغییر یافته به همراه13 افزوده شده و 2 حذف شده
  1. 1 1
      README.md
  2. 11 0
      makefile
  3. 1 1
      tun_dev.cpp

+ 1 - 1
README.md

@@ -200,4 +200,4 @@ Note: the performance is mainly limited by the RS code lib.
 
 As a VPN software may contradict with local regulations, I had to introduce an intended restriction in the pre-released binaries: you can only use tinyfecVPN to access your own server.
 
-You can easily get rid of this restriction by compiling the source code by yourself(there is a macro for it). This restriction exits only at server side, only the server side binary needs to be compiled.
+You can easily get rid of this restriction by compiling the source code by yourself, take a look at makefile. This restriction exits only at server side, only the server side binary needs to be compiled by yourself.

+ 11 - 0
makefile

@@ -21,6 +21,7 @@ TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/tinyvpn_\1/g'` ve
 all:git_version
 	rm -f ${NAME}
 	${cc_local}   -o ${NAME}      ${INCLUDE}  ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3
+
 debug: git_version
 	rm -f ${NAME}
 	${cc_local}   -o ${NAME}          -I. ${SOURCES} ${FLAGS} -lrt -Wformat-nonliteral -D MY_DEBUG 
@@ -74,3 +75,13 @@ clean:
 git_version:
 	    echo "const char * const gitversion = \"$(shell git rev-parse HEAD)\";" > git_version.h
 	
+nolimit_all:
+	make OPT=-DNOLIMIT
+nolimit_cross:
+	make cross OPT=-DNOLIMIT
+nolimit_cross2:
+	make cross2 OPT=-DNOLIMIT
+nolimit_cross3:
+	make cross2 OPT=-DNOLIMIT
+nolimit_release:
+	make release OPT=-DNOLIMIT

+ 1 - 1
tun_dev.cpp

@@ -129,7 +129,7 @@ int from_fec_to_normal2(conn_info_t & conn_info,dest_t &dest,char * data,int len
 	for(int i=0;i<out_n;i++)
 	{
 
-#ifndef NORES
+#ifndef NOLIMIT
 		if(client_or_server==server_mode)
 		{
 			char * tmp_data=out_arr[i];