build: remove unused configuration options, strip legacy makefile content