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?