Modify makefile to drop unused code