Configure the usage of external makefiles and other project options in the project properties.
Remember that an external makefile has to contain the rules needed by Microchip Studio to work.