# OUTPUT type # 1 - .out # 2 - .a # 3 - .so OUTPUT_TYPE = 2 OUTPUT_NAME = halmac ifeq ($(target), kunlun2) hw_dep = hw2 else ifeq ($(target), kunlun3) hw_dep = hw3 else hw_dep = hw endif endif SUB_DIRS = beacon/ data/ desc/ init/ pdev/ \ peer/ rx/ sched/ sw_queue/ tx/ vdev/ task/ \ $(hw_dep) hw_desc msdu stream rate sw_sched nn_cco crc \ key avln ppm_scan status mac_cfg channel tx_power pm \ test dbg_pkt_mode multi_nid_sync mac_check_spur hplc_ext \ channel_tools mac_hw_tsfm utils rf htbus zc crypto ifeq ($(target), kunlun3) SUB_DIRS += zc/zc_2 else SUB_DIRS += zc/zc_1 endif # .h files dir ADD_INCLUDE += $(TOPDIR)/plc/common/inc ../common/plc_cli/include \ ../common/plc_dbglog/include $(TOPDIR)/export/inc/socket $(TOPDIR)/inc/socket $(TOPDIR)/inc/os_shim $(CURDIR)/$(hw_dep)/inc/desc \ $(CURDIR)/$(hw_dep)/inc/reg $(CURDIR)/$(hw_dep)/inc $(TOPDIR)/inc/plc_lib $(TOPDIR)/inc/swc_lib \ $(TOPDIR)/inc/io_lib $(TOPDIR)/inc/dbglog $(TOPDIR)/plc/halmac/test/inc \ $(TOPDIR)/inc/uart $(TOPDIR)/inc/cli $(TOPDIR)/cli/communicator \ $(TOPDIR)/os/freertos/src/portable/RISCV \ $(TOPDIR)/inc/crypto ifeq ($(target), kunlun3) ADD_INCLUDE += $(TOPDIR)/plc/halmac/$(hw_dep)/plc_inc/desc $(TOPDIR)/plc/halmac/$(hw_dep)/plc_inc \ $(TOPDIR)/plc/halmac/$(hw_dep)/rf_inc/desc $(TOPDIR)/plc/halmac/$(hw_dep)/rf_inc endif # predefined macro PRE_MARCO += # lib dir ADD_LIBDIR = # lib need to ld together ADD_LIB = ######################################################## #leave the lines below un-modified ######################################################## ifdef TOPDIR include $(TOPDIR)/build/makefile.cfg else include $(CURDIR)/build/makefile.cfg TOPDIR = $(CURDIR) export TOPDIR endif # display the obj files and output name debug: @echo TOPDIR=$(TOPDIR) @echo OUTPUT_DIR=$(OUTPUT_DIR) @echo OUTPUT_MAP=$(OUTPUT_MAP) @echo OUTPUT_LIB=$(OUTPUT_FULL_NAME) @echo DEPS=$(DEPS) @echo OBJECTS=$(OBJECTS) @echo SRCS=$(SRCS) @echo OBJECTS folder=$(foreach dirname, $(SUB_DIRS), $(addprefix $(BIN_DIR)/, $(dirname))) @echo output_name=$(OUTPUT_FULL_NAME) @echo LINK_LIBS=$(LINK_LIBS) @echo MAKEDEP=$(MAKEDEP) @echo CC=$(CC)