luckfox-pico-sdk/project/app/wifi_app/hisi_tools/Makefile
2023-08-08 20:36:47 +08:00

33 lines
1.1 KiB
Makefile

#===============================================================================
# export variable
#===============================================================================
ifeq ($(CFG_HI_EXPORT_FLAG),)
SAMPLE_DIR ?= $(shell cd $(CURDIR) && /bin/pwd)
endif
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# variable
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
app_sample = app
libsec = securec
objects := $(libsec) $(app_sample)
objects_clean:=$(addsuffix _clean,$(objects))
#===============================================================================
# rules
# #===============================================================================
.PHONY: all clean
all: $(objects)
clean: $(objects_clean)
#==================================================================
# modules
#==================================================================
.PHONY: $(objects) $(objects_clean) $(libsec) $(app_sample)
$(libsec):
make -C $(libsec) all
$(app_sample):$(libsec)
make -C $(app_sample) all
$(objects_clean):
make -C $(SAMPLE_DIR)/$(patsubst %_clean,%,$@) clean