make & Makefile
. . . . . . . . . . . . . . . . . . . . . . make & Makefile . 问题及解决方法 . . .1 如果某个源文件 (source file)修改必须重新生成所有与之关联的目 标文件 (targets), 如:对lex.h的改动, 必须重新手工编译lex.c, plain.c及最后生成plain, 这对管理工程造成了很大的不便; .2 Makefile . make 命令格式 1/2 . . Syntax of make: make [options] [target1 target2 ...] 常用的选项如下: -f file 以file作为Makefile; -d 输出 debug 信息,如:make -d -f Myfile > log 2>&1 -p 打印Makefile文件的所有的规则, 包括系统内置的变量和潜 规则; . . . . . . . . . . . . . . . . . . . . . make & Makefile . make 命令格式 2/2 . . make在执行时如果没有-f file选项,首先以当前目录下的名 为makefile的文件作为其分析处理的对象, 其次是名 为Makefile的文件; 如果都不存在, make将报错如下: make: *** No targets specified0 码力 | 36 页 | 975.98 KB | 1 年前3Java 应用系统开发 - ServletContext 和 Web 配置
0 码力 | 33 页 | 668.91 KB | 1 年前3Kubernetes 异常配置检测框架
0 码力 | 31 页 | 9.57 MB | 1 年前3跟我一起写 Makefile (PDF 重制版)
无论是 C 还是 C++,首先要把源文 件编译成中间代码文件,在 Windows 下也就是 .obj 文件,UNIX 下是 .o 文件,即 Object File,这个 动作叫做编译(compile)。然后再把大量的 Object File 合成可执行文件,这个动作叫作链接(link)。 编译时,编译器需要的是语法的正确,函数与变量的声明的正确。对于后者,通常是你需要告诉编 译器头文件的所 件,只管函数的中间目标文件(Object File), 在大多数时候,由于源文件太多,编译生成的中间目标文件太多,而在链接时需要明显地指出中间目标 文件名,这对于编译很不方便。所以,我们要给中间目标文件打个包,在 Windows 下这种包叫“库文 件”(Library File),也就是 .lib 文件,在 UNIX 下,是 Archive File,也就是 .a 文件。 总结一下,源文件 明,编译器会给出一个警告,但可以生成 Object File。而在链接程序时,链接器会在所有的 Object File 中找寻函数的实现,如果找不到,那到就 会报链接错误码(Linker Error),在 VC 下,这种错误一般是:Link 2001 错误,意思说是说,链接器 未能找到函数的实现。你需要指定函数的 Object File。 好,言归正传,gnu 的 make 有许多的内容,闲言少叙。0 码力 | 81 页 | 628.51 KB | 1 年前3Linux 下 Makefile 的 automake 生成全攻略
的内容修改,去掉无关的语句: ===============configure.in 内容开始=================== # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_INIT(helloworld.c) AM_INIT_AUTOMAKE(helloworld, 文件中的宏的顺序并没有规定,但是 你必须在所有宏的最前面和最后面分别加上 AC_INIT 宏和 AC_OUTPUT 宏。 在 configure.in 中: #号表示注释,这个宏后面的内容将被忽略。 AC_INIT(FILE) 这个宏用来检查源代码所在的路径。 AM_INIT_AUTOMAKE(PACKAGE, VERSION) 11 这个宏是必须的,它描述了我们将要生成的软件包的名字及其版本号:PACKAGE 命令时,它会给你生成一个类似 helloworld-1.0.tar.gz 的软件发行包,其中就有对应的软件包的名字和版本号。 AC_PROG_CC 这个宏将检查系统所用的 C 编译器。 AC_OUTPUT(FILE) 这个宏是我们要输出的 Makefile 的名字。 我们在使用 automake 时,实际上还需要用到其他的一些宏,但我们可以用 aclocal 来帮 我们自动产生。执行 aclocal 后我们会得到0 码力 | 14 页 | 701.04 KB | 1 年前3httpd 2.4.25 中文文档
should be able to find more information in either the New Features document, or in the src/CHANGES file. Application and module developers can find a summary of API changes in the API updates overview. This document describes changes in server behavior that might require you to change your configuration or how you use the server in order to continue using 2.4 as you are currently using 2.2. To take upgrading document. See also Overview of new features in Apache HTTP Server 2.4 Compile Time Configuration Changes The compilation process is very similar to the one used in version 2.2. Your old configure0 码力 | 2573 页 | 2.12 MB | 1 年前3httpd 2.4.23 中文文档
should be able to find more information in either the New Features document, or in the src/CHANGES file. Application and module developers can find a summary of API changes in the API updates overview. This document describes changes in server behavior that might require you to change your configuration or how you use the server in order to continue using 2.4 as you are currently using 2.2. To take upgrading document. See also Overview of new features in Apache HTTP Server 2.4 Compile Time Configuration Changes The compilation process is very similar to the one used in version 2.2. Your old configure0 码力 | 2559 页 | 2.11 MB | 1 年前3httpd 2.4.20 中文文档
should be able to find more information in either the New Features document, or in the src/CHANGES file. Application and module developers can find a summary of API changes in the API updates overview. This document describes changes in server behavior that might require you to change your configuration or how you use the server in order to continue using 2.4 as you are currently using 2.2. To take upgrading document. See also Overview of new features in Apache HTTP Server 2.4 Compile Time Configuration Changes The compilation process is very similar to the one used in version 2.2. Your old configure0 码力 | 2533 页 | 2.09 MB | 1 年前3httpd 2.4.33 中文文档
should be able to find more information in either the New Features document, or in the src/CHANGES file. Application and module developers can find a summary of API changes in the API updates overview. This document describes changes in server behavior that might require you to change your configuration or how you use the server in order to continue using 2.4 as you are currently using 2.2. To take Support Apache! See also Overview of new features in Apache HTTP Server 2.4 Compile Time Configuration Changes The compilation process is very similar to the one used in version 2.2. Your old configure0 码力 | 2692 页 | 3.12 MB | 1 年前3httpd 2.2.31 中文文档
should be able to find more information in either the New Features document, or in the src/CHANGES file. This document describes only the changes from 2.0 to 2.2. If you are upgrading from version 1.3 3 to 2.0 upgrading document. See also Overview of new features in Apache 2.2 Compile Time Configuration Changes The compilation process is very similar to the one used in version 2.0. Your old configure mod_imap has been renamed to mod_imagemap mod_auth has been split up into mod_auth_basic, mod_authn_file, mod_authz_user, and mod_authz_groupfile mod_access has been renamed to mod_authz_host mod_auth_ldap0 码力 | 1860 页 | 1.48 MB | 1 年前3
共 717 条
- 1
- 2
- 3
- 4
- 5
- 6
- 72