

The next example performs exactly the same function, but demonstrates the use of make's predefined macros for the indicated compilation commands. In this example, make produces the object files main.o and data.o, and the executable file functions: $ makeĬc -O -c data.c Using make's Predefined Macros Table 4-4 Simple Makefile for Compiling C Sources: Everything Explicit # Simple makefile for compiling a program from The following makefile is not elegant, but it does the job. This method requires more disk space, but subsequent (repetitive) recompilations need to be performed only on those object files for which the sources have changed, which saves time. o) file, and then by linking the object files to form an executable ( a.out) file.

Many include library routines, either from one of the standard system libraries or from a user-supplied library.Īlthough it might be easier to recompile and link a single-source program using a single cc command, it is usually more convenient to compile programs with multiple sources in stages-first, by compiling each source file into a separate object (. Most C programs, however, are compiled from several source files. mod_ssl-2.4. previous examples you have seen how to compile a simple C program from a single source file, using both explicit target entries and implicit rules. mod_socache_dc-2.4. mod_socache_dc module, withĬorresponding dependency on distcache. mod_proxy_html-2.4. mod_proxy_html module, withĬorresponding dependency on libxml2. mod_lua-2.4. mod_lua module, withĬorresponding dependency on lua. mod_authnz_ldap-2.4. mod_ldap and mod_authnz_ldap, withĬorresponding dependency on openldap. httpd-tools-2.4. Supporting tools for the webserver.

httpd-devel-2.4. Headers and development files for the server. httpd-debuginfo-2.4. Debugging symbols for the server and all modules. If successful, the following RPMs will be created: httpd-2.4. The core server and basic module set. Not be required after the build is completed, and can be safely removed. Will automatically calculate what RPMs are required and will list anyĭependencies that are missing on your system. Corresponding "-devel" packages will be required to be installed on yourīuild system prior to building the RPMs, the rpmbuild command
