rules.min
来自「在高通的手机平台下,一个下载手机.bin文件到手机的flash中的工具,包含PC」· MIN 代码 · 共 1,072 行 · 第 1/4 页
MIN
1,072 行
# symbol definition and input source file on the compile line in the rules
# defined below.
SRC_FILE = $(@:%.o=%.c)# Input source file specification
OBJ_FILE = $(OBJ_CMD) $(@)# Output obj file specification
SRC_CFILE= $(notdir $(SRC_FILE))# C File of src without directory
MSG_FILE = -DMSG_FILE=\"$(SRC_CFILE)\"# MSG_FILE symbol definition
VPATH = .:$(TARGETDIR)#
#-------------------------------------------------------------------------------
# C code inference rules
#-------------------------------------------------------------------------------
# Needed for building split files that are in TARGETDIR when not starting
# the build from scratch
$(TARGETDIR)/%.o: $(TARGETDIR)/%.c
@echo -----------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_CMD) $@ $(TARGETDIR)/$*.c
@echo -----------------------------------------------------------------
$(TARGETDIR)/%.o %.o: %.c
@echo -----------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_CMD) $@ $*.c
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# Assembly code inference rules
#-------------------------------------------------------------------------------
$(TARGETDIR)/%.o %.o: %.s
@echo -----------------------------------------------------------------
@echo OBJECT $@
$(CC) -E $(DMSS_AFLAGS) < $< | perl $(ASM_SCRIPT) - > $(TARGETDIR)\\$*.i
$(ASM) $(AFLAGS) -list $(TARGETDIR)\\$*.lst $(TARGETDIR)\\$*.i $(OBJ_CMD) $@
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# C++ code inference rules
#-------------------------------------------------------------------------------
$(TARGETDIR)/%.o %.o: %.cpp
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CPPC) $(CFLAGS) $(DMSS_CFLAGS) $(APPS_INC) $(PV_INC) $(MSG_FILE) $(OBJ_CMD) $@ $*.cpp
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Mixed source/assembly inference rule
#-------------------------------------------------------------------------------
%.mix: %.c
@echo -----------------------------------------------------------------
@echo OBJECT $@ CV
$(CC) -S -fs $(CFLAGS) $(DMSS_CFLAGS) -DMSG_FILE=\"$<\" $(OBJ_CMD) $@ $<
@echo -----------------------------------------------------------------
#===============================================================================
# MODULE SPECIFIC RULES
#===============================================================================
# The following module specific rules allow sets of objects to be compiled
# with compiler flags other than the defaults used in the suffix rules defined
# above. The following rules use the module specific compiler flags defined
# at the beginning of this file. New objects can be added to any of the
# following rules by modifying the corresponding list of objects.
#-------------------------------------------------------------------------------
# Mobile object
#-------------------------------------------------------------------------------
# Invoke dirtcc.exe to include the current working directory in the mobile
# object. The mobile object also includes the compile date and time and is
# built every time to ensure that the date and time information is accurate.
$(TARGETDIR)/mobile.o : mobile.c
@echo -----------------------------------------------------------------
@echo OBJECT $@
-$(DIRTCC) $(CFLAGS) $(DMSS_CFLAGS_MOB) $(MSG_FILE) $(OBJ_FILE) $(BUILD_VERSION) $(SRC_CFILE)
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# Display module #Added by DS for extra use of Epson library
#-------------------------------------------------------------------------------
$(LCD_EPSON_OBJS) :
$(TARGETDIR)/disp_e_auo.o : disp_e_auo.c
@echo -----------------------------------------------------------------
@echo OBJECT $@
-$(CC) $(CFLAGS) $(DMSS_CFLAGS_LCD) $(MSG_FILE) $(OBJ_FILE) $(SRC_CFILE)
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# Analog call processing
#-------------------------------------------------------------------------------
$(ACP_OBJS) : $(SRC_FILE)
@echo -----------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_ACP) $(MSG_FILE) $(OBJ_FILE) $<
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# MPEG 4 processing
#-------------------------------------------------------------------------------
$(GRAPH_OBJS) : $(SRC_FILE)
@echo -----------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(APPS_INC) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $<
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# APPS modules
#-------------------------------------------------------------------------------
$(APPMGR_OBJS) : $(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(APPS_INC) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(APPMGR_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
$(MOBIMON_OBJS) : $(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(APPS_INC) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(MOBIMON_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
$(GUNIMON_OBJS) : $(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(APPS_INC) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(GUNIMON_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
$(SPRITEGAME_OBJS) : $(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(APPS_INC) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(SPRITEGAME_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
$(MEDIAPLAYER_OBJS) : $(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(APPS_INC) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(MEDIAPLAYER_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
$(PUREVOICE_OBJS) : $(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(APPS_INC) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(PUREVOICE_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# ADC driver
#-------------------------------------------------------------------------------
$(ADC_OBJS) : $(ADC_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(ADC_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
$(ADC_PMUX_OBJS) : $(ADC_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(ADC_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# CHARGER driver
#-------------------------------------------------------------------------------
$(CHG_OBJS) : $(CHG_SRC)/$(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $(@F)
$(CC) $(CFLAGS) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $(CHG_SRC)/$(SRC_CFILE)
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# No RAM code
#-------------------------------------------------------------------------------
# Compile the boot code with no compiler optimization to avoid insertion of
# stack push and pop instructions in functions that are called before target
# RAM has been initialized.
$(NORAM_OBJS) : $(SRC_FILE)
@echo -----------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS0) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $<
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# Debug Message Processing Files
#-------------------------------------------------------------------------------
$(DIAGMSG_OBJS) :$(SRC_FILE)
@echo -----------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_NONE) $(MSG_FILE) $(OBJ_FILE) $<
@echo -----------------------------------------------------------------
#-------------------------------------------------------------------------------
# Clock Files.
#-------------------------------------------------------------------------------
$(CLKMSG_OBJS) : $(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS) $(MSG_FILE) $(OBJ_FILE) $<
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# DEINTERLEAVER AND DECODER UNIT
#-------------------------------------------------------------------------------
$(DEC_OBJS) : $(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_DEC) $(MSG_FILE) $(OBJ_FILE) $<
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# ENCODER
#-------------------------------------------------------------------------------
$(ENC_OBJS) : $(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_ENC) $(MSG_FILE) $(OBJ_FILE) $<
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# CDMA call processing
#-------------------------------------------------------------------------------
$(MC_OBJS) : $(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_MC) $(MSG_FILE) $(OBJ_FILE) $<
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Position Determination Session Manager
#-------------------------------------------------------------------------------
$(PDSM_OBJS) : $(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_PDSM) $(MSG_FILE) $(OBJ_FILE) $<
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Position Determination Session Manager
#-------------------------------------------------------------------------------
$(PE_OBJS) : $(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_PE) $(MSG_FILE) $(OBJ_FILE) $<
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Position Determination Session Manager
#-------------------------------------------------------------------------------
$(PB_OBJS) : $(SRC_FILE)
@echo ------------------------------------------------------------------
@echo OBJECT $@
$(CC) $(CFLAGS) $(DMSS_CFLAGS_PB) $(MSG_FILE) $(OBJ_FILE) $<
@echo ------------------------------------------------------------------
#-------------------------------------------------------------------------------
# PM (Power Management IC PM1000) driver
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?