makefile
来自「统计模式识别算法包」· 代码 · 共 58 行
TXT
58 行
lint_options = -uvlint_pipe = | grep -v -e "possible pointer" \ | grep -v -e "and return;" \ | grep -v -e "llib-lc" \ | grep -v -e "ignored"# The interesting stuff:files = choldc_e.c cholsl.c matrix_iof.c memoryutilf.c ctmq_batch2.c regress.c ctml8.c ofiles = $(files:.c=.o)base = .binary_directory = . main = ctml8.c execute = bctm# here's what controls compilation of all .o files# this overrides any implicit compilation directives built in.c.o: gcc -O3 -c $*.c# For the rest of the file JUST STANDARD STUFF. Don't try to edit or understand# -lm - math library for sqrt() - link with a file named libm.a (usually in /usr/lib)test4: $(ofiles) gcc -o $(execute) $(ofiles) -lmlint: lint $(lint_options) $(include_directories) \ test4.c $(xwsource) $(sources) $(lint_pipe)clean: rm -f *.o core $(execute) # To maintain dependence on include files changing:
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?