To compile this program, create a Makefile as follows.
要编译这个程序,请按以下方式创建一个makefile。
With a suitably configured Makefile, only foo.o would be recompiled from its source.
使用一个经过适当配置的Makefile,将只会从源文件编译foo . o。
The user has to obtain your module, run Makefile.PL to create a Makefile, run make to compile it, test it, and install it, and only then can scripts using the module be run.
用户必须取得您的模块,然后运行Makefile.PL来创建一个Makefile,再运行make 来对它进行编译、测试和安装。只有这样,使用这个模块的脚本才能得以正确运行。
I've simply added instrument.c to Gzip's dependencies in its Makefile, built it, and then used Gzip to generate a trace file.
我简单地将instrument . c加入Gzip的Makefile中,作为其依赖的一个源文件,然后编译Gzip,并使用它生成一个跟踪文件。
This results in a difficult situation: fairly commonly used features, such as including other files in a makefile by reference, cannot be done portably!
这就导致出现了一种复杂的情况:很常用的一些特性,例如在makefile 中通过引用来包含其他文件,都不能很好地移植!
Other features you can use in a makefile are wildcards, long filenames, comments, and special characters.
可以在生成文件中使用的其他功能是通配符、长文件名、注释和特殊字符。
Other programs may ask you to directly edit a makefile, and of course, new development may require you to write one.
其他程序可能会要求我们直接编辑makefile,当然,新的开发还可能需要我们自己编写makefile。
See the accompanying makefile (in Resources later in this article) for a simple example of this.
有关这一点的简单示例,请参阅随附的makefile(在本文后面的参考资料中)。
Run configure to create a makefile appropriate for the native operating system.
运行configure,创建适合于原生操作系统的makefile。
If the make fails, look in the topmost directory for a makefile specific to your system.
如果make运行失败,那么在顶层目录中寻找适合自己系统的makefile。
These flags are not especially portable but may be necessary to understand in debugging a makefile.
这些标记的可移植性并不好,但是对于理解makefile来说却是必须的。
Its functionality, however, is a lot like the Makefile functionality in that complex operations on variables are hard to do.
但是,它的功能非常象Makefile功能,对变量的复杂操作是很难处理的。
Phony targets are used for organizational purposes and are a wonderful thing in writing a clear and legible makefile. For instance, one often sees rules like this.
伪目标是为了组织结构的目的而设计的,这在编写一个清晰的makefile时是种非常不错的技术。
The main problem people encounter when writing their first makefile is visible in this construction; or rather, invisible. The indentation is a TAB.
人们在编写自己的第一个makefile时所碰到的主要问题在这个结构中可能看得出来,也可能看不出来:缩进使用的是制表符,而不是多少个空格。
Using directives, you can conditionally process your makefile, display error messages, include other makefiles, undefine a macro, and turn certain options on or off.
使用指令可以有条件地处理生成文件,显示错误消息,包括其他生成文件,取消定义宏以及打开或关闭某些选项。
As you know, the purpose of a makefile is to give instructions for building a program.
正如所了解的那样,makefile的目标就是为编译程序提供一些指令。
What's the difference between a compiler and a Makefile?
编译器和Makefile有什么区别?
If you intend to use all the features of the library, include the header file m17n.h in your program, and then add -lm17n to your link options -- say in a Makefile.
如果要使用这个库的所有特性,就需要在程序中包含m17n.h 头文件,然后在链接选项中加上-lm17n 选项,这可以在 Makefile 中实现。
I needed to change one line in the makefile to build a 32-bit version, and about four lines to build a 64-bit version.
我需要在makefile中修改一行内容来编译一个32位的版本,修改4行内容来编译64位版本。
Each build is specified using a build Configuration and the IDE automatically creates a makefile for each build Configuration.
每个构建都是利用BuildConfiguration来指定的,并且IDE将为每个Build Configuration自动生成makefile。
MakeMaker works by translating a simple configuration file into a standard makefile that can be used with the familiar make command.
MakeMaker将简单配置文件转换为标准makefile,该makefile可以与大家熟悉的make命令一起使用。
When used with a makefile, overriding the CC variable suffices; see Listing 8.
当它与makefile一起使用时,就会覆盖CC变量;如清单8所示。
The Imakefile file is used by the XMKMF program to generate a makefile.
xmkmf程序将使用Imakefile文件来生成makefile。
Your goal in debugging a makefile is to figure out what make is trying to build, and what commands it thinks will build it.
在调试makefile时,目标是找到make正在试图编译什么东西,以及它认为哪些命令可以用来编译。
The Makefile contains a list of source files to build, and it also includes constants that enable or disable and choose certain snippets of code in the SQLite package.
这个Makefile中包含需要编译的源文件的列表,并且它还包括启用或者禁用并选择SQLite包中的某些代码片段的常数。
If they are not, it will generate a list of missing files, and will not build the master Makefile.
如果它们不存在,它将生成丢失文件的列表,并不会构建主makefile。
In general, all boards for which a configuration option exists in the Makefile have been tested to some extent and can be considered "working". In fact, many of them are used in production systems.
一般来说,所有存在配置选项的开发板都已经做过一定范围的测试,并且可以认为是能够正常工作的,事实上,它们很多都用于实际的产品中。
In general, all boards for which a configuration option exists in the Makefile have been tested to some extent and can be considered "working". In fact, many of them are used in production systems.
一般来说,所有存在配置选项的开发板都已经做过一定范围的测试,并且可以认为是能够正常工作的,事实上,它们很多都用于实际的产品中。
应用推荐