Replaced the simple (and broken) Makefile with automake/autoconf