diff --git a/Makefile.mpw b/Makefile.mpw index 380a8b84..d5876120 100644 --- a/Makefile.mpw +++ b/Makefile.mpw @@ -1,4 +1,4 @@ -# $Id: Makefile.mpw,v 1.1.2.7 1999/03/29 23:55:06 ben Exp $ +# $Id: Makefile.mpw,v 1.1.2.8 1999/04/01 21:25:06 ben Exp $ # This is the Makefile for building PuTTY for the Mac OS. # Users of non-Mac systems will see some pretty strange characters around. @@ -93,15 +93,22 @@ PuTTY {Libs¥68K} END -PuTTY ÄÄ {¥MondoBuild¥} mac_res.r macresid.h +PuTTY ÄÄ mac_res.r macresid.h Rez mac_res.r -o {Targ} {Includes} -append +PuTTY ÄÄ version.r version.h + Rez mac_res.r -d BUILD_ARCH='"68k"' -o {Targ} {Includes} -append + PuTTY.ppc ÄÄ {¥MondoBuild¥} mac_res.r macresid.h Rez mac_res.r -o {Targ} {Includes} -append -PuTTY.fat Ä PuTTY PuTTY.ppc +PuTTY.ppc ÄÄ version.r version.h + Rez mac_res.r -d BUILD_ARCH='"PowerPC"' -o {Targ} {Includes} -append + +PuTTY.fat Ä PuTTY PuTTY.ppc version.r version.h Duplicate -y PuTTY PuTTY.fat MergeFragment PuTTY.ppc PuTTY.fat + Rez mac_res.r -d BUILD_ARCH='"fat"' -o {Targ} {Includes} -append .c.o Ä .c {C} {default}.c -o {Targ} {COptions} diff --git a/version.h b/version.h new file mode 100644 index 00000000..25ccc85e --- /dev/null +++ b/version.h @@ -0,0 +1,14 @@ +/* PuTTY version number */ +/* + * Note that this file is used by resource compilers that don't + * implement the funkier bits of CPP + */ + +#define PUTTY_VERS_MAJOR 0 +#define PUTTY_VERS_MAJOR_BCD 0x00 +#define PUTTY_VERS_MINOR 45 +#define PUTTY_VERS_MINOR_BCD 0x45 +#define PUTTY_VERS_PRERELEASE 0 +#define PUTTY_VERS_STATE development +#define PUTTY_VERS_SHORT_STR "0.45d0" +#define PUTTY_VERS_LONG_STR "Dev 0.45 Mac 0" diff --git a/version.r b/version.r new file mode 100644 index 00000000..56e033f1 --- /dev/null +++ b/version.r @@ -0,0 +1,24 @@ +/* + * PuTTY version resource + * (separated because it gets rebuilt for each architecture) + */ + +#include "version.h" +#include "Types.r" + +#ifndef BUILD_ARCH +#define BUILD_ARCH "unknown" +#endif + +resource 'vers' (1, purgeable) { + PUTTY_VERS_MAJOR_BCD, + PUTTY_VERS_MINOR_BCD, + PUTTY_VERS_STATE, + PUTTY_VERS_PRERELEASE, + 2, /* Region code (2 = UK) */ + PUTTY_VERS_SHORT_STR, + + PUTTY_VERS_LONG_STR " (" BUILD_ARCH ")\n" + "Copyright \$a9 Simon Tatham 1997-9", +}; +