mkcsrc: rewrite a simplified version

Signed-off-by: Jean Privat <jean@pryen.org>
.gitattributes: nodiff all c_src

Signed-off-by: Jean Privat <jean@pryen.org>