📄 idp.mf
字号:
# makefile fragment idp.mf
# define build parameters for Motorola Integrated Development Platform (IDP)
# TARGETNAME specifies the target we are building for
# it is defined for conditional compilation in C source
TARGETNAME.idp := IDP68K
# COMPILER is the name passed in the command line to identify which tool set to use
COMPILER.idp := 68k
# CPU is an option passed on the command line to select the particular CPU family member
CPU.idp := -m68000
# LIBS lists the names of libraries needed by this target
LIBS.idp := $(CHIPNAME)hal libse
# CFLAGS lists the compiler flags to use when compiling C programs
CFLAGS.idp := $(CPU.idp) -O2
# LDFLAGS lists the flags to use when linking
LDFLAGS.idp := $(CPU.idp) -T idp.ld
# ARFLAGS fixes a library manager problem (ar)
ARFLAGS.sh3 := rvS
# filename extensions for this target
ASM.idp := s
OBJ.idp := o
LIB.idp := a
EXE.idp := cof
HEX.idp := idp
DEP.idp := d
# 'extra' objects needed for HAL and LIBSE
# use just the basename here - no filename extensions
HAL_EXTRAS.idp := hal_emb
LIBSE_EXTRAS.idp := idpgetch idpputch
EXTRAS.idp :=
# command line to link OBJs into EXE
LINK.idp = $(LINK.o) $^ $(LDLIBS) -o $@
# command line to convert an EXE file to a HEX file
# note: can't use $< here, because one of the dependancies will be the destination directory
# instead, transform the name of the target to get the source file
EXEtoHEX.idp = $(OBJCOPY) -O srec $(@F:.$(HEX)=.$(EXE)) $@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -