nt9856x/code/application/Makefile
xiaojiazhu 357972e6d3 1.use curl + openssl and link library from SifarSDK project.
2.rm sifarsdk code,Makefile will git clone code when build.
3.usb net test ok.
4.compile network tools and link from SifarSDK project.
2023-07-21 10:39:18 +08:00

30 lines
1.2 KiB
Makefile
Executable File

include $(NVT_PRJCFG_MODEL_CFG)
include $(BUILD_DIR)/definitions.mk
APP_DIR ?= $(PWD)
APPSUBDIRS := $(subst /,,$(filter $(patsubst %,%/,$(NVT_CFG_APP)), $(subst source/, , $(dir $(wildcard source/*/Makefile source/*/makefile)))))
APP_EXTLIST := $(shell cd $(APP_DIR)/external; make -s list)
LIBSUBDIRS := $(filter-out %external, $(subst /,,$(subst $(LIBRARY_DIR)/source, , $(dir $(wildcard $(LIBRARY_DIR)/source/*/Makefile $(LIBRARY_DIR)/source/*/makefile)))))
LIB_EXTLIST := $(shell cd $(LIBRARY_DIR)/external; make -s list)
BUILD_LIST := $(LIB_EXTLIST:%=nvt@ext@lib@%) $(LIBSUBDIRS:%=nvt@lib@%) $(APP_EXTLIST:%=nvt@ext@app@%) $(APPSUBDIRS)
all:
# $(MAKE) -C ./sifarsdk/novatek/S530 sf_cs_app
@$(call makedep, $(BUILD_LIST))
listpackage:
@echo -e "\e[1;36mAvailable packages: \e[0m"
@for n in $(BUILD_LIST); do \
echo -e "\e[1;33m\t$$n \e[0m"; \
done;
@echo -e "\e[1;36mAdd \"DEP_LIBRARIES= package_name\" to your Makefile can support dependent build.\e[0m"
install:
@$(call makelist, $(addprefix source/, $(APPSUBDIRS)), install)
@cd $(APP_DIR)/external; make install;
clean:
@$(call makelist, $(addprefix source/, $(APPSUBDIRS)), clean)
@cd $(APP_DIR)/external; make clean;
@rm -rf $(APP_DIR)/output