[tor-commits] [orbot/master] add obfsclient build but don't include binary yet

n8fr8 at torproject.org n8fr8 at torproject.org
Sun Feb 23 00:27:06 UTC 2014


commit d605b45488ea0337afcb2df1ff861808bb08b2eb
Author: Nathan Freitas <nathan at freitas.net>
Date:   Sat Feb 22 19:19:50 2014 -0500

    add obfsclient build but don't include binary yet
---
 external/Makefile |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/external/Makefile b/external/Makefile
index 252d6aa..71b2a73 100644
--- a/external/Makefile
+++ b/external/Makefile
@@ -71,6 +71,7 @@ endif
 	iptables iptables-clean \
 	tor tor-clean \
 	obfsproxy obfsproxy-clean \
+	obfsclient obfsclient-clean \
 	privoxy privoxy-clean
 
 all: assets
@@ -242,6 +243,34 @@ obfsproxy-clean:
 		git clean -fdx
 
 #------------------------------------------------------------------------------#
+# obfsclient
+
+
+obfsclient/Makefile: 
+	cd obfsclient && \
+	 	./autogen.sh
+	cp config.sub obfsclient
+	cp config.guess obfsclient
+	cd obfsclient && \
+                CPP="$(CPP)" AR="$(AR)" RANLIB=$(RANLIB) CPPFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fPIE -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \
+                        ./configure \
+                                --host=$(HOST) \
+
+obfsclient-build-stamp: obfsclient/Makefile
+	$(MAKE) -C obfsclient
+	touch obfsclient-build-stamp
+
+obfsclient: openssl libevent obfsclient-build-stamp
+	test -d bin || mkdir bin
+	cp obfsclient/obfsclient bin
+
+obfsclient-clean:
+	-rm -f bin/obfsclient
+	-rm -f obfsclient-build-stamp
+	-cd obfsclient && \
+		git clean -fdx
+
+#------------------------------------------------------------------------------#
 # privoxy
 
 





More information about the tor-commits mailing list