Use Autoconf and automake to generate makefile

Source: Internet
Author: User

Http://www.ibm.com/developerworks/cn/linux/l-makefile/

Generate the ins and outs of makefile

First, go to the project directory, run a series of commands in the directory, and create and modify several files to generate makefile files that match the platform. The procedure is as follows:

1) run the autoscan command

2) Rename Configure. Scan to configure. In and modify the configure. In file.

3) create a makefile. Am file in the project directory, and create a makefile. Am file in the core and shell directories.

4) create news, README, changelog, and authors files in the project directory

5) copy the depcomp and complie files under the/usr/share/automake-1.X/directory to the local directory

6) run the aclocal command

7) run the Autoconf command

8) run the automake-a command.

9) run the./confiugre script.

You can see in Figure 2 the process of generating makefile ,:

Figure 2 generate makefile Flowchart
 

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.