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