zte's code,first commit
Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/app/openvpn/makefile b/ap/app/openvpn/makefile
new file mode 100755
index 0000000..30cb7fd
--- /dev/null
+++ b/ap/app/openvpn/makefile
@@ -0,0 +1,36 @@
+
+include $(COMMON_BASE_MK)
+
+NAME=openvpn
+SRC_DIR=openvpn-2.4.4
+INSTALL_DIR=$(APP_DIR)/$(NAME)/install
+BUILD_DIR=build
+GEN_MAKEFILE=$(BUILD_DIR)/Makefile
+
+CONFIG_OPTS = --host=arm-linux
+CONFIG_OPTS += --with-sysroot=$(CROSS_COMPILE_SYSROOT)
+CONFIG_OPTS += --enable-lzo
+CONFIG_OPTS += --disable-plugin-auth-pam
+CONFIG_OPTS += --disable-plugin-down-root
+CONFIG_OPTS += --with-crypto-library=openssl
+
+CFLAGS += -I$(LIB_DIR)/liblzo/install/include
+CFLAGS += -I$(LIB_DIR)/libssl/install/include
+
+LDFLAGS += -L$(LIB_DIR)/liblzo/install/lib
+LDFLAGS += -L$(LIB_DIR)/libssl/install/lib
+LDFLAGS += -ldl
+
+all: $(GEN_MAKEFILE)
+ make -C build all
+ make -C build install
+
+$(GEN_MAKEFILE):
+ mkdir -p $(BUILD_DIR)
+ cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS)
+
+clean:
+ -rm -fr $(BUILD_DIR) $(INSTALL_DIR)
+
+romfs:
+ $(ROMFSINST) $(INSTALL_DIR)/sbin/openvpn /sbin/openvpn