Adjust primary Makefile for local compilation