如何“执行"制作文件 [英] how to "execute" make file
问题描述
我试图在代码::: blocks中使用一个make文件,但是我做错了.我已经安装了包含编译器的版本. http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/Windows/codeblocks-10.05mingw-setup.exe/download .我应该如何处理make文件?它开始于:
I tried to use a make file in code::blocks but I am doing it wrong. I have the version installed with the compilers included. http://sourceforge.net/projects/codeblocks/files/Binaries/10.05/Windows/codeblocks-10.05mingw-setup.exe/download. What do I do with the make file? It starts with:
CC=gcc
美国最佳
推荐答案
您不倾向于执行make文件本身,而是执行make
,将make文件作为参数:
You don't tend to execute the make file itself, rather you execute make
, giving it the make file as an argument:
make -f pax.mk
如果您的make文件实际上是标准名称之一(例如makefile
或Makefile
),则甚至无需指定它.默认情况下会选中它(如果您的构建目录中有多个标准名称之一,则最好查阅make
手册页以了解哪个优先).
If your make file is actually one of the standard names (like makefile
or Makefile
), you don't even need to specify it. It'll be picked up by default (if you have more than one of these standard names in your build directory, you better look up the make
man page to see which takes precedence).
这篇关于如何“执行"制作文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!