Files
kunlun/dtest/rawdata_test/Makefile
2024-09-28 14:24:04 +08:00

49 lines
1.1 KiB
Makefile
Executable File

# OUTPUT type
# 1 - .out
# 2 - .a
# 3 - .so
OUTPUT_TYPE = 0
OUTPUT_NAME = rawdata
ifeq ($(cpu1_build), 1)
SUB_DIRS += rawdata
endif
ifeq ($(cpu1_build), 0)
SUB_DIRS += mac_tx_test mac_rx_test
endif
# .h files dir
#ADD_INCLUDE += $(TOPDIR)/inc/pkt $(TOPDIR)/inc/io_lib $(TOPDIR)/plc/inc \
# $(TOPDIR)/plc/halphy/inc $(TOPDIR)/inc/os_shim $(TOPDIR)/common/compiler/gcc/inc \
# $(TOPDIR)/plc/halmac/inc $(TOPDIR)/inc/utils $(TOPDIR)/plc/halmac/hw/inc/desc \
# $(TOPDIR)/plc/halmac/hw/inc/reg $(TOPDIR)/plc/halmac/hw/inc $(TOPDIR)/plc/halphy/hw/inc \
# $(TOPDIR)/inc/driver $(TOPDIR)/dtest/common $(TOPDIR)/plc/common/inc
# predefined macro
PRE_MARCO +=
# lib dir
ADD_LIBDIR =
# lib need to ld together
ADD_LIB =
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_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)