50 lines
848 B
Makefile
50 lines
848 B
Makefile
|
|
# OUTPUT type
|
|
# 1 - .out
|
|
# 2 - .a
|
|
# 3 - .so
|
|
OUTPUT_TYPE = 0
|
|
OUTPUT_NAME = mac_phy
|
|
|
|
ifeq ($(target), kunlun3)
|
|
hw_dep = hw3
|
|
endif
|
|
|
|
SUB_DIRS = rf_mac rf_phy double_cpu
|
|
|
|
# .h files dir
|
|
ADD_INCLUDE += ./inc
|
|
|
|
ifeq ($(target), kunlun3)
|
|
ADD_INCLUDE += $(TOPDIR)/driver/src/hw3/inc
|
|
endif
|
|
|
|
# predefined macro
|
|
PRE_MARCO +=
|
|
|
|
# lib dir
|
|
ADD_LIBDIR =
|
|
|
|
# lib need to ld together
|
|
ADD_LIB =
|
|
|
|
#$(warning TOPDIR=$(TOPDIR))
|
|
|
|
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)
|