make: add 'checksrc' as target to check code style

The make target checksrc now works in the root makefile and in both the
src and lib directories.

It is also run automatically on "all" if configure --enable-debug was
used.
3 files changed