[Work Notes] Generating Makefile with Autotools and Makefile.am
Quick reference for generating a Makefile using the Autotools workflow: # autoscan . // Scan the folder to generate configure.scan # cp configure.scan configure.ac // Copy configure.scan to configure.ac # vi configure.ac // Edit configure.ac // Add: AM_INIT_AUTOMAKE(hello,1.0) // This is the 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 required documents # automake --add-missing // Run automake again # ./configure // Execute configure to generate Makefile # make // Execute make Following these steps provides a good template to modify the related files for my specific target project.