Main
Resources
The problem lies in a reference to strchr() which is part of the string library. It occurs in mkdata.c and gives the following error (your line number may vary):

mkdata.c:131: macro `strchr' used without args
mkdata.c:131: parse error before `&&'
make: *** [mkdata.o] Error 1

The error occurs because of this line of code:

char *strchr();

This amounts to a redeclaraction of strchr, a function which isn't even called from within mkdata.c. Removing or commenting out the offending line of code results in a normal compile.