Refine the order of the configurations in Makefile

The configurable options are moved at the front of the Makefile so that
we can change it easily.