makefile

来自「ucos在所有cpu下的移植范例」· 代码 · 共 44 行

TXT
44
字号
# must have a blank line between definitions because polymake gets confused
# with the escape\ and the \ at the end of a line meaning continue line.

INTROL_PATH = c:\introl

C_SRCS = MAIN UCOS TASK16 

ASM_SRCS = start cpu16 tasksw16 tick16 

ASM_OBJS = $[f,"",$(ASM_SRCS),"o16"]
C_OBJS = $[f,"",$(C_SRCS),"o16"]

C_HEADERS = DEFS.H UCOS.H 

HEAD : A.OUT

.c.o16 :
# Ignore whatever is returned by programs which polymake interprets as
# error codes use -command operation line modifier
# Set the search paths in environment variables; note \escape so that polymake
# won't think it's calling for line continuation.

        %setenv INTROL=$(INTROL_PATH)

	cc16 $< -gg -i=$(INTROL_PATH)\include -l -w9 > $*.cer
        type $*.cer

.s.o16 :
# Set the search paths in environment variables; note \escape so that polymake
# won't think it's calling for line continuation.

        %setenv INTROL=$(INTROL_PATH)

        as16 $< -l

$(C_OBJS) : $(C_HEADERS)
$(ASM_OBJS) : UCOS.H 
A.OUT: $(ASM_OBJS) $(C_OBJS) 

    ild16 $(ASM_OBJS) $(C_OBJS) -d c:\introl\lib16 -f a.map -gc:\syndev\m6816\c
    IHEX A.OUT 
<

⌨️ 快捷键说明

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