blob: 8e7bb62eb1c5270d1385af2bdce475727cc9676b [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001include $(COMMON_BASE_MK)
2
3NAME=cwmp
4SRC_DIR=netcwmp
5INSTALL_DIR=$(LIB_DIR)/$(NAME)/install
6BUILD_DIR=build
7GEN_MAKEFILE=$(BUILD_DIR)/Makefile
8
9CONFIG_OPTS = --target=arm-linux
10#--host=arm-linux
11#CONFIG_OPTS += --enable-shared
12export echo=echo
13
14all:
15 echo $(CXX)
16 cd $(SRC_DIR) && CXX=$(CXX) ./configure -C --host=arm-linux
17 make -C $(SRC_DIR) clean
18 make -C $(SRC_DIR) all
19
20clean:
21 @echo ----------------------
22 -make -C $(SRC_DIR) distclean
23
24romfs:
25 $(ROMFSINST) ./$(SRC_DIR)/cwmpd/src/cwmpd /bin/cwmpd
26 cp -f ./$(SRC_DIR)/cwmp.conf $(ROOTFS_DIR)/etc_ro/cwmp.conf
27