📄 make-10.html
字号:
</span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
生成。此规则只是转换</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Ratfor</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">或有预处理的</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Fortran</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">程序到一个标准的</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Fortran</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">程序。根据源文件后缀执行对应的命令:</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span lang="SV" style="font-size: 12.0pt; line-height: 150%; color: black">
.F </span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
—</span><span style="font-size: 12.0pt; line-height: 150%; color: black"> </span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
“</span><span lang="SV" style="font-size: 12.0pt; line-height: 150%; color: black">$(FC)
–F $(CPPFLAGS) $(FFLAGS)</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span lang="SV" style="font-size: 12.0pt; line-height: 150%; color: black">
.r </span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
—</span><span style="font-size: 12.0pt; line-height: 150%; color: black"> </span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
“</span><span lang="SV" style="font-size: 12.0pt; line-height: 150%; color: black">$(FC)
–F $(FFLAGS) $(RFLAGS)</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: -21.0pt; margin-left: 39.0pt">
<b><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: blue">
6.<span style="font:7.0pt "Times New Roman""> </span></span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: blue">
编译</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: blue">Modula-2</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: blue">程序</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.sym</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”自动由“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.def</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”</span><span style="font-size: 12.0pt; line-height: 150%; color: black">
</span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
生成,执行的命令是:“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">$(M2C)
$(M2FLAGS) $(DEFFLAGS)</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”。“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.o</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”自动由“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.mod</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”生成,执行的命令是:“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">$(M2C)
$(M2FLAGS) $(MODFLAGS)</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: -21.0pt; margin-left: 39.0pt">
<b><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: blue">
7.<span style="font:7.0pt "Times New Roman""> </span></span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: blue">
汇编和需要预处理的汇编程序</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.s</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”是不需要预处理的汇编源文件,“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.S</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”是需要预处理的汇编源文件。汇编器为“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">as</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.o</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”</span><span style="font-size: 12.0pt; line-height: 150%; color: black">
</span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
可自动由“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.s</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”生成,执行命令是:“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">$(AS)
$(ASFLAGS)</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.s</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”</span><span style="font-size: 12.0pt; line-height: 150%; color: black">
</span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
可由“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.S</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”生成,</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">C</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">预编译器“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">cpp</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”,执行命令是:“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">$(CPP)
$(CPPFLAGS)</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: -21.0pt; margin-left: 39.0pt">
<b><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: blue">
8.<span style="font:7.0pt "Times New Roman""> </span></span>
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: blue">
链接单一的</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: blue">object</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: blue">文件</span></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”自动由“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">N.o</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”生成,通过</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">C</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">编译器使用链接器(</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">GUN
ld</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">),执行命令是:“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">$(CC)
$(LDFLAGS) N.o $(LOADLIBES) $(LDLIBS)</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”。</span></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
此规则仅适用:由一个源文件直接产生可执行文件的情况。当需要有多个源文件共同来创建一个可执行文件时,需要在</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">中增加隐含规则的依赖文件。例如:</span></p>
<p class="MsoNormal" style="margin-left:58.2pt"><b><i>
<span lang="EN-US" style="font-size: 12.0pt; font-family: Arial">x : y.o z.o</span></i></b></p>
<p class="MsoBodyTextFirstIndent" style="text-indent: 0cm; margin-left: 36.0pt">
<span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">
当“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: black">x.c</s
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -