Android system Development (4)--autotools

Source: Internet
Author: User
Tags install go automake

Composition of Autotools Tools

1, AutoScan

AutoScan is used to scan the source code directory to generate Configure.san files, Configure.san contains the basic system configuration options, there are some macro definitions, we need to change its name to Configure.in

2, Aclocal

Aclocal is a Perl scripting program. Aclocal automatically generates ACLOCAL.M4 files based on the contents of the Configure.in file, and the resulting ACLOCAL.M4 file is a macro expansion file.

3, autoconf

Autoconf is used to produce configure files, the contents of the Configure.in file are macros, which are processed by autoconf into a shell script that examines system features, environment variables, and the parameters required by the software.

4, Autohead

Automatically generate config.h.in

5, Automake

Use automake-add-missing to generate makefile.in.

Document address:https://www.gnu.org/software/autoconf/manual/autoconf.html

Files used in preparing a software the package for distribution, when using just Autoconf:

     Your source files---[autoscan*]--[Configure.scan]          -configure.ac configure.ac--.                    |   . ------> autoconf*-----> Configure     [ACLOCAL.M4]--+---+                    |   '-----> [autoheader*]--[config.h.in]     [ACSITE.M4]---'          makefile.in

Additionally, if you use Automake, the following additional productions come into play:

     [ACINCLUDE.M4]--.                      |     [Local macros]--+--> aclocal*-aclocal.m4                      |     Configure.ac----'          configure.ac--.                    +--> automake*-makefile.in     makefile.am---'

Files used in configuring a software package:

                            .-------------> [Config.cache]     configure*------------+-------------> Config.log                            |     [Config.h.in]-.       V            .-> [config.h]-.                    +--> config.status*-+               +--> make* makefile.in     ---',                    Makefile---'
Autotools Process Demo 1, autoscan modify Configure.san file named Configure.ac or configure.in, open the configuration we generate makefile information. 2. aclocal execute autoconf command to generate configure executable file and create a new makefile.am to edit the content
    1. Bin_programs = Hello
    2. Hello_sources = hello.c
Install the software execute make command and sudo make install go to/usr/local/bin below execute our executable Hello Generate compression package

Android system Development (4)--autotools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.