Sorry, I copied bad error message, but the problem is the same. I tried to build it in various OS(solaris,kubuntu,knoppix), all from "live cd". I dont know why, but in knoppix OS is different error message. Makefile is named "Makefile".

//solaris + kubuntu//
make: Fatal error: Command failed for target `AI.o'
jack@opensolaris:~$ make
g++ -Wall -Wno-long-long -pedantic AI.cpp
sh: line 1: g++: not found
*** Error code 127
//knoppix//
g++ -Wall -Wno-long-long -pedantic AI.cpp
/UNIONFS/usr/bin/../lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function `_start':
../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [AI.o] Error 1