Linux Application Development-autotools

Source: Internet
Author: User

Linux application Development-autotools The use of a tool
In a case-oriented, that is, packaging a hello program

1 Writing HELLO.C


2 AutoScan


3 Change Configure.s the can suffix is called. AC


4 VI configure.ac plus release information and Am_init_automake (release information) and output file name (Makefile)


5 aclocal Generating ACLOCAL.M4 files


6 Autoheader generate the corresponding header file, can not, if not the third line of the Configure.ac file header file information needs to be commented out


7 Autoconf Generating Configure files


8 Writing makefile.am files


Format: bin_programs = (file name to generate) Hello

(file name to generate) Hello_sources = hello.c (source file)


9 Automake--add-missing, you will be prompted to create some file columns such as News,readme,changelog, Automake--add-missing after creation, Build makefile.in file after success


10 execution./configure


11 Execute Make build target file Hello



12 perform the make install into the system


Hello Chengzhi, return to the top level directory to perform Hello success


14 installation is successful, ready for package release


The Dist automatic packaging file, the file name is called the Configure.ac file in its own configuration of the release information, the success of the package, can be published


A flowchart of the official website of the process

There is also a tool table


Linux Application Development-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.