Add unified Automake-based build logic.