[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/cwmp/Makefile b/ap/app/cwmp/Makefile
new file mode 100755
index 0000000..8e7bb62
--- /dev/null
+++ b/ap/app/cwmp/Makefile
@@ -0,0 +1,27 @@
+include $(COMMON_BASE_MK)
+
+NAME=cwmp
+SRC_DIR=netcwmp
+INSTALL_DIR=$(LIB_DIR)/$(NAME)/install
+BUILD_DIR=build
+GEN_MAKEFILE=$(BUILD_DIR)/Makefile
+
+CONFIG_OPTS = --target=arm-linux
+#--host=arm-linux
+#CONFIG_OPTS += --enable-shared
+export echo=echo
+
+all:
+ echo $(CXX)
+ cd $(SRC_DIR) && CXX=$(CXX) ./configure -C --host=arm-linux
+ make -C $(SRC_DIR) clean
+ make -C $(SRC_DIR) all
+
+clean:
+ @echo ----------------------
+ -make -C $(SRC_DIR) distclean
+
+romfs:
+ $(ROMFSINST) ./$(SRC_DIR)/cwmpd/src/cwmpd /bin/cwmpd
+ cp -f ./$(SRC_DIR)/cwmp.conf $(ROOTFS_DIR)/etc_ro/cwmp.conf
+