[工作點滴] process to generate makefile by autotools with Makefile.am

I've search on internet and get quick steps for whole process to generate Makefile by Autotools.

I’ve search on internet and get quick steps for whole process to generate Makefile by Autotools.

autoscan . // scan the folder

cp configure.scan configure.ac // copy the configure.scan to configure.ac

vi configure.ac // edit the configure.ac

                              // add AM_INIT_AUTOMAKE(hello,1.0) in configure.ac  


                              // this is required marco for automake  

aclocal // execute aclocal to generate aclocal.m4

autoconf // execute autoconf to generate configure

autoheader

automake –add-missing // run automake

touch NEWS; touch README; touch AUTHORS; touch ChangeLog // create related documents

automake –add-missing // run automake again

./configure // execute the configure to generate Makefile

make // execute make

According to the steps, I get more hint to modify the related files for my target.


Comments & Feedback