Use the existing makefile for the environment that most closely resembles the new RTOS as a template. The GNU version of the Solaris makefile (sol2buildGNU.mak) is the most neutral makefile because it is based on general GNU make capabilities, as opposed to the more target-specific makefiles (such as msoxf.mak), which are specific to a particular environment.