Change source file type to cpp.And Makefile can compile cpp file.
So, you must add code '#include "Arduino.h"' to top line of file as manual.