CMake simplified so that it does nothing but generates MSVC projects

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Bug in Windows build fixed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Remove bashisms from abi_version.sh

This is needed to build on Solaris

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
bashisms remvoed from package_version.sh

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Implement `make diagrams` command

The script scans `.c` files for state machines and draws them using
graphviz. Diagrams are not perfect, but helpful anyway. Also a quick and
dirty html page is generated.

Signed-off-by: Paul Colomiets <paul@colomiets.name>
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
make diagrams works even if destination subdirectory already exists

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Merge branch 'master' of github.com:250bpm/nanomsg
POSIX error codes missing on old Windows versions added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Merge remote-tracking branch 'origin/simple-cmake'
Another POSIX error code missing on old Windows versions added

closes #97