Add Makefile and make it run

Can you change the source to look for __HAIKU__ (which is defined automatically) rather than _HAIKU_?