makefile
来自「斯坦福Energy211/CME211课《c++编程——地球科学科学家和工程师》」· 代码 · 共 25 行
TXT
25 行
CFLAGS= # All object files that must be linked into final executableOBJ= matrix.o vector.o linsys.o main.o# Rule for building executable from object files# $@ is shorthand for the target of the rulecustom_solve: ${OBJ} c++ ${CFLAGS} -o $@ ${OBJ}# Rule for compiling individual sources files into object files# $< is shorthand for the first prerequisite${OBJ}: %.o: %.cpp c++ ${CFLAGS} -c $<# Rule to clean up all output filesclean: rm -f custom_solve ${OBJ}# DO NOT DELETElinsys.o: linsys.h vector.h matrix.hmain.o: linsys.h vector.h matrix.hmatrix.o: matrix.h vector.hvector.o: vector.h matrix.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?