📄 makefile
字号:
########################################################################
# Makefile file for #
# Created by #
# Created time: #
########################################################################
include $(SRC_ROOT)/protocol/map/map.dir
########################################################################
# Set makefile's type (SRC_TYPE-default or LINK_TYPE) (you must set it)
########################################################################
MAKE_TYPE = SRC_TYPE
NEED_TRI_SSI = YES
PRODUCT_NAME = test.o
MAKEFILE_NAME = $(MAP_DIR)/test/makefile
ifeq ($(MAKE_TYPE), SRC_TYPE)
VPATH = $(MA_TEST_SRC)
SRCS = $(wildcard $(foreach EVERY_VPATH,$(VPATH),$(EVERY_VPATH)/*.c $(EVERY_VPATH)/*.cpp $(EVERY_VPATH)/*.s))
EXTRA_INCLUDE = $(MAP_INC)
EXTRA_DEFINE = $(PRODUCT_CFG)
else
OBJS =
LIB_PATH =
endif
LIB_OBJS =
########################################################################
# root directory (you must set it)
# if you source code is not in current directory, you must set VPATH
########################################################################
########################################################################
# include rules and common directory definition
########################################################################
#-----------------------------------------------------------------------
ifndef SRC_ROOT
exit_to_setenv:
@echo Must define SRC_ROOT!
else
ifndef OBJS_DIR
exit_to_setenv:
@echo Must define OBJS_DIR!
else
ifndef CPU
exit_to_setenv:
@echo Must define CPU!
else
include $(SRC_ROOT)/build/makefile.rules
endif
endif
endif
#-----------------------------------------------------------------------
########################################################################
# (you could add your product name in PRODUCT_NAME)
# (you could add your source code in SRCS)
# (you could add your object in OBJS)
# (you could add depend in DEPEND)
########################################################################
########################################################################
# If make source files include make source rules
########################################################################
ifeq ($(MAKE_TYPE), SRC_TYPE)
include $(SRC_ROOT)/build/make_src.rule
endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -