The base Makefile file is located in the root directory: '''contiki/Makefile.include'''. It must be included in the user's Makefile. Depending on the target platform, which must be specified by the user, other Makefiles are merged before compilation. The other Makefile may be platform or cpu-dependent, and they can be found in folders: '''contiki/platform/*/Makefile.platform'''' and '''contiki/cpu/*/Makefile.cpu'''.
 
The base Makefile file is located in the root directory: '''contiki/Makefile.include'''. It must be included in the user's Makefile. Depending on the target platform, which must be specified by the user, other Makefiles are merged before compilation. The other Makefile may be platform or cpu-dependent, and they can be found in folders: '''contiki/platform/*/Makefile.platform'''' and '''contiki/cpu/*/Makefile.cpu'''.
 +
 +
== Changing the Platform ==
    
The default target is '''native''', which compiles code to be executed on the host machine (x86). Other available targets are: "z1, wismote, stk500, sky, etc.". The Sky Motes used in ANRG lab should be burned using target '''sky'''.
 
The default target is '''native''', which compiles code to be executed on the host machine (x86). Other available targets are: "z1, wismote, stk500, sky, etc.". The Sky Motes used in ANRG lab should be burned using target '''sky'''.
   Exception encountered, of type "Error"