File: User-Guide.html

package info (click to toggle)
eclipse-cdt 9.9.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 145,456 kB
  • sloc: java: 1,114,843; xml: 64,727; javascript: 18,756; cpp: 5,269; ansic: 3,171; makefile: 1,508; asm: 814; sh: 295; f90: 22; python: 5
file content (61 lines) | stat: -rw-r--r-- 4,885 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Autotools Plug-in User Guide</title>
		<link type="text/css" rel="stylesheet" href="../../../book.css"/>
	</head>
	<body>
		<table class="navigation" style="width: 100%;" border="0" summary="navigation">
			<tr>
				<th style="width: 100%" align="center" colspan="3">Autotools Plug-in User Guide</th>
			</tr>
			<tr>
				<td style="width: 20%" align="left"></td>
				<td style="width: 60%" align="center"></td>
				<td style="width: 20%" align="right">
					<a href="Supported-Environments.html" title="Supported Environments">
						<img alt="Next" border="0" src="../../../images/next.gif"/>
					</a>
				</td>
			</tr>
			<tr>
				<td style="width: 20%" align="left" valign="top"></td>
				<td style="width: 60%" align="center"></td>
				<td style="width: 20%" align="right" valign="top">Supported Environments</td>
			</tr>
		</table><hr class="navigation-separator"/>
		<h1 id="Introduction">Introduction</h1>
		<p>The Autotools plug-in for Eclipse is an optional feature of the CDT (C/C++ Development Tools) that adds support for maintaining and
			building C/C++ projects that use GNU Autotools.  The Autotools plug-ins were migrated from the Linux Tools project into the CDT as part of the Eclipse Juno release.</p>
		<p>The GNU Autotools are a set of tools used to make a project portable to multiple systems or build environments.  The tools aid the developer to create
			a configure script which is meant to be invoked prior to performing the build.  The configure script may perform tests such as testing the current platform, the OS, what is locally installed, or any number of things.  Parameters can be passed as well to provide information that is not calculable (e.g. what will be the target platform the project will be run on).  Results of tests and parameters are used to create the Makefiles for the build or in some cases, additional files such as header files or code sequences. </p>
		<p>What gets tested is fully controllable by the developer by way of special input files which
			are fed to the Autotools.  Typically, the most commonly used Autotools are 'autoconf', 'automake', and 'aclocal'.  The 'autoconf' tool takes a 'configure.in' or 'configure.ac' input file and creates the 'configure' script previously discussed.  It is possible to have multiple configure scripts in various subdirectories, but a project should be designed so there is one top-level configure script that calls any lower-level ones automatically.</p>
		<p>The 'automake' tool takes a 'Makefile.am' input file and creates a 'Makefile.in' file which is used at configuration time by the configure script as a template for creating a Makefile.  Each Makefile will have its own corresponding Makefile.in file.  There may be if/else logic used to determine what ends up in the Makefile or there may be requests to directly substitute variables calculated in the configure step.</p>
		<p>The 'aclocal' tool creates a repository of macros that are specified directly or indirectly in the 'autoconf' input files.  Such macros are provided to perform commonly used tests or actions (e.g. test that a certain header file
			exists or find the C compiler).  The macros are written in a language called m4 and the developer is free to create their own macros to add to the repository.  </p>
		<p>The Autotools plug-in adds support for running the configure script prior to the build.  As well, support is added for invoking the Autotools themselves as well as maintaining the files they use.  An Autotools project extends a CDT Makefile project.  Therefore, functionality in the CDT for supporting such a project applies to an Autotools project as well (e.g. C/C++ Property pages).</p>
		<p>For more details on the GNU Autotools, see 
			<a href="http://www.gnu.org/software/autoconf/">http://www.gnu.org/software/autoconf/</a> and

			<a href="http://www.gnu.org/software/automake/">http://www.gnu.org/software/automake/</a>
		</p><hr class="navigation-separator"/>
		<table class="navigation" style="width: 100%;" border="0" summary="navigation">
			<tr>
				<td style="width: 20%" align="left"></td>
				<td style="width: 60%" align="center"></td>
				<td style="width: 20%" align="right">
					<a href="Supported-Environments.html" title="Supported Environments">
						<img alt="Next" border="0" src="../../../images/next.gif"/>
					</a>
				</td>
			</tr>
			<tr>
				<td style="width: 20%" align="left" valign="top"></td>
				<td style="width: 60%" align="center"></td>
				<td style="width: 20%" align="right" valign="top">Supported Environments</td>
			</tr>
		</table>
	</body>
</html>