Skip to content
Patrick Martin edited this page Nov 3, 2013 · 4 revisions

Building

Technology

  • Delphi 7 only standard VCL components
  • Borland Make, GNU make for build system
  • POSIX standard (I hope)

make targets

  • clean
  • default
  • docs - builds the Doxygen output
  • NetController.exe - the GUI app
  • Wakeup.exe - the Delphi Windows tool
  • swakeup.mingw - the POSIX tool built using MinGW
  • swakeup.posix - the POSIX tool built using Cygwin, linux
  • lint - lints the C file using splint

semantic versioning

See http://semver.org/

Semantic versioning for example, will fit in nicely with the Windows Installer rules. Although there is no Wix or other Windows Installer project, be careful to use the right components of the version - http://msdn.microsoft.com/en-us/library/aa370859%28v=vs.85%29.aspx

The version numbers are contained in version.txt

building a release

The rules

  • 'make lint' should be entirely clean
  • 'make clean ' should produce no diagnostic output.
  • when run with valid arguments, there is no output and the return code is 0, otherwise you should get usage text

If the above are true, then you should be good to build a release.

Windows

You may need to run something like 'myenv.bat' on your Windows box to lock down the tool paths. I don't have a complex linux setup, so the out of the box settings work for me with not package/path trickery of my invention.

'make clean default' is intended to do the trick. Note that due to a quirk that has yet to be tracked down and isolated, the IDE build will have no icon, which is fine by me as it prevents "secret sauce" builds from going out.

Anything else

i.e. cygwin, debian

try 'make swakeup.posix'

Clone this wiki locally