- Prepare automake (i.e. brew install automake)
- Move sorces to /src directory
- Add Makefile.am
- autoscan
- mv configure.scan configure.ac
- Add AM_INIT_AUTOMAKE line to configure.ac
- autoheader
- aclocal
- Make required files (i.e. touch NEWS README AUTHORS ChangeLog)
- automake --add-missing
- autoconf
- ./configure
- make
- src/hello
Makefile.am
SUBDIRS = src
src/Makefile.am
bin_PROGRAMS = hello
hello_SOURCES = hello.cc hello.h main.cc
- http://www.02.246.ne.jp/~torutk/cxx/automake/automake.html
- http://www.jaist.ac.jp/~kiyoshiy/memo/autoconf.html
- https://www.sourceware.org/autobook/autobook/autobook_25.html
- https://developer.gnome.org/anjuta-build-tutorial/stable/create-autotools.html.en