| 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 |
| |