makefile

来自「ST flash driver」· 代码 · 共 39 行

TXT
39
字号
# Pick up default rules and variables
include $(DVD_MAKE)/generic.mak

# Other components this component is dependant upon
#IMPORTS =
#EXPORTS = 

LKFLAGS = $(LIBRARIES) -L$(OASIS)/config -fp -T tylkoum.cfg -M $@.map

# Local objects which comprise this component
OBJS     = main.tco \
					flash.tco \
					custom.tco

# Default build targets
TARGETS = flashprg.lku

include $(DVD_MAKE)/defrules.mak

# This builds this component

flashprg.lku : $(OBJS)
	$(CC) $(LKFLAGS) $^ $(OSLIBS) std_nvod.lib ktcable.lib kt_menu.lib browser.lib -p $(BOARD_SPECIFIC_SCRIPT_LKU) -o $@


run: flashprg.lku
	st20run -l $(OASIS)/config -l $(DVD_MAKE) -i tylkoum_16M.cfg -t $(TARGET) $^

debug:
	st20run -g -l $(OASIS)/config $(DVD_MAKE) -i tylkoum_16M.cfg -t $(TARGET)

clean:
	@echo Cleaning stflash
	$(RM) *.tco
	$(RM) *.lib

# Dependencies

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?