Which of the following files will be looked for and used by GNU make, if one of them exists, unless a different file is specified on the command line when trying to compile software from source code? (Choose TWO correct answers.)

A. configure
B. config.h.in
C. makefile
D. Makefile
E. Makefile.in

题解

GNU 的「make」指令可以透过「-f」参数来决定要使用的文件。如果不指定的话,就会依照以下顺序尝试读取工作目录中的:

  • GNUmakefile
  • makefile
  • Makefile

所以答案是选项「C」和选项「D」。