📄 make.patch
字号:
Some systems don't include the default rules for making libraries.This can be added to individual library makefiles as:.c.a: $(CC) -c $(CFLAGS) $< ar rv $@ $*.o rm -f $*.o.f.a: $(FC) -c $(FFLAGS) $< ar rv $@ $*.o rm -f $*.oSome systems don't recognize the built-in symbol, $$@, as in:prog : $$@.o cc $(CFLAGS) $@.o -o $@In this example it would be as easy to write:prog : prog.o cc $(CFLAGS) prog.o -o progBut the use of this in SU is to group a bunch of files that need thesame compilation into one rule:$(XM) : $$@.o cc $(CFLAGS) $@.o -lsu -lm -o $@If you don't have $$@, you'll have to write individual rules for eachmember of $(XM) and so forth. Sigh.Note: This stuff is well discussed in Kochan and Wood, "Topics in C Programming", Hayden, 1987.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -