- 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