It appears I don't check this board often enough to be always useful.
Most of what I'm going to mention was already covered by HGM, but I still need to correct other points.
1) We don't currently have a distclean (or 'dist-clean') target in the makefiles. But as HGM said, you can "make -f makefile.gcc clean" or "nmake -f makefile.ms clean"
2) The missing ../backend.c is pretty serious meaning you are missing the parent directory from winboard. There are files there that are absoutely necessary to build Winboard.
3) The errors you got when building using DevCpp ought to be fixed now, just d/l the current tarball from git. wsettings.c was added to the project, and both cmdline makefiles, but not to the .dev files nor the .dsp
4) stripping the final exe shouldn't be necessary. Both cmdline makefiles strip it in the link stage for non-debug builds. The same is true for the Visual Studio and DevCpp project files.
EDIT -- split item 2) above, adding 5) here along with error messages so that search engines will assist people with this problem.
5) Please note that if you use the same source tree to build both xboard and winboard, there may be a file "config.h" in winboard's parent directory. Building winboard will fail if that file is present. The one in the WINBOARD directory itself is the one you need, but because of compiler include rules, if config.h exists in BOTH places, it picks the wrong one and winboard fails to build. The symptoms of this problem are:
- Code: Select all
makefile.gcc:
warning: implicit declaration of function `random`
warning: implicit declaration of function `srandom`
undefined reference to `_random`
undefined reference to `_srandom`
makefile.ms:
fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory