it's C, not C++
use generic makefile
cut down
clean warnings