2024-09-28 14:24:04 +08:00
|
|
|
|
|
|
|
# OUTPUT type
|
|
|
|
# 1 - .out
|
|
|
|
# 2 - .a
|
|
|
|
# 3 - .so
|
|
|
|
OUTPUT_TYPE = 0
|
|
|
|
OUTPUT_NAME = mfgtool
|
|
|
|
|
2024-10-12 05:45:51 +08:00
|
|
|
SUB_DIRS = ah oem_tool lzma clzma bootram ram
|
2024-09-28 14:24:04 +08:00
|
|
|
|
|
|
|
# Kl3 compiles ram.bin separately to improve compilation speed.
|
2024-10-12 05:45:51 +08:00
|
|
|
# ifneq ($(target), kunlun3)
|
|
|
|
# SUB_DIRS += ram
|
|
|
|
# endif
|
2024-09-28 14:24:04 +08:00
|
|
|
|
|
|
|
# .h files dir
|
|
|
|
ADD_INCLUDE += $(TOPDIR)/inc $(TOPDIR)/inc/compiler/gcc $(TOPDIR)/inc/utils $(TOPDIR)/inc/os_shim
|
|
|
|
|
|
|
|
# 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)
|