Configure, make, what did the install do?

Source: Internet
Author: User

1. My understanding
./configure: Ensure that the next make and do install files that are dependent on no problem
Make:build compiling a connection to generate an executable program
Make install: Copy the compiled executable program and the document to the corresponding system directory

2. So how do I make configure files and makefile?

1) prepararation
MAIN.C,

#include <stdio.h>int main (intconstChar *argv[]) {    printf ( " Hello world\n " );     return 0 ;}

Configure.ac

Ac_init ([helloworld],[0.1],[[email protected]163. com]) Am_init_automakeac_prog_ccac_config _files ([Makefile]) Ac_output

Makefile.in

automake_options=== main.c

2) Tools:

 aclocal------------------> set   up an M4 environmentautoconf ------------------> Generate Configure from  Span style= "color: #000000;" > Configue.acautomake --add-mising------> Generate Makefile. in  from   makefile.am.  /configue-----------------> Generate Makefile from  makefile.in  make distcheck -------------> Use Makefile to build and test a tarball To distribute 


3. Overview

./configure # Generate Makefile from makefile.in
Make # Use Makefile to build the program
Make install # Use Makefile to install the program


Refer to:
1. The magic behind configure, make, make install


Configure, make, what did the install do?

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.