lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | include $(COMMON_BASE_MK) |
| 2 | |
| 3 | NAME=cwmp |
| 4 | SRC_DIR=netcwmp |
| 5 | INSTALL_DIR=$(LIB_DIR)/$(NAME)/install |
| 6 | BUILD_DIR=build |
| 7 | GEN_MAKEFILE=$(BUILD_DIR)/Makefile |
| 8 | |
| 9 | CONFIG_OPTS = --target=arm-linux |
| 10 | #--host=arm-linux |
| 11 | #CONFIG_OPTS += --enable-shared |
| 12 | export echo=echo |
| 13 | |
| 14 | all: |
| 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 | |
| 20 | clean: |
| 21 | @echo ---------------------- |
| 22 | -make -C $(SRC_DIR) distclean |
| 23 | |
| 24 | romfs: |
| 25 | $(ROMFSINST) ./$(SRC_DIR)/cwmpd/src/cwmpd /bin/cwmpd |
| 26 | cp -f ./$(SRC_DIR)/cwmp.conf $(ROOTFS_DIR)/etc_ro/cwmp.conf |
| 27 | |