From 2c9b8b7381621a43020295ae5b7f76b78704c105 Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Sat, 14 Feb 1998 23:56:40 +0000 Subject: [PATCH] startup.mk: - define REZ as "17/occ" versus "occ" so that dmake doesn't have to search the PATH every time it calls $(REZ) - explicitly specify the output file for the default rule for making *.r files. builddate.rez: - This file is for inclusion by the various utility *.rez files so that the build date can be displayed in a consistent format. --- build.tools/builddate.rez | 15 +++++++++++++++ build.tools/dmake.startup | 4 ++-- build.tools/startup.mk | 4 ++-- rinclude/builddate.rez | 15 +++++++++++++++ 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 build.tools/builddate.rez create mode 100644 rinclude/builddate.rez diff --git a/build.tools/builddate.rez b/build.tools/builddate.rez new file mode 100644 index 0000000..f622b41 --- /dev/null +++ b/build.tools/builddate.rez @@ -0,0 +1,15 @@ +/* + * This file is used to specify the build date in a programs resource + * fork. It is used by #including it in the program *.rez file. + * + * $Id: builddate.rez,v 1.1 1998/02/14 23:56:39 gdr-ftp Exp $ + */ + +#define BUILD_DATE "Build Date: " $$Date + +/* + Unfortunately, this mechanism doesn't seem to work. It gets zeros for the + month and hour fields: + $$Format("%d/%d/%d %d:%d",$$Year,$$Month,$$Day,$$Hour,$$Minute) +*/ + diff --git a/build.tools/dmake.startup b/build.tools/dmake.startup index be9495e..18bce01 100644 --- a/build.tools/dmake.startup +++ b/build.tools/dmake.startup @@ -74,7 +74,7 @@ __OFLAG = -a0 PCFLAGS += -E -P RC := #f77 # ratfor compiler FC := #f77 # fortran compiler - REZ := occ # resource compiler (we should use rc(1)) + REZ := 17/occ # resource compiler (we should use rc(1)) REZFLAGS += CATREZ := /usr/bin/catrez # used for copying resource forks @@ -128,7 +128,7 @@ __OFLAG = -a0 %.root : %.asm ; $(AS) $(ASFLAGS) $< # Resource descriptions in REZ format - %.r : %.rez ; $(REZ) -c $(REZFLAGS) $< + %.r : %.rez ; $(REZ) -o $@ -c $(REZFLAGS) $< # Executables %$E : %$O ; $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) diff --git a/build.tools/startup.mk b/build.tools/startup.mk index be9495e..18bce01 100644 --- a/build.tools/startup.mk +++ b/build.tools/startup.mk @@ -74,7 +74,7 @@ __OFLAG = -a0 PCFLAGS += -E -P RC := #f77 # ratfor compiler FC := #f77 # fortran compiler - REZ := occ # resource compiler (we should use rc(1)) + REZ := 17/occ # resource compiler (we should use rc(1)) REZFLAGS += CATREZ := /usr/bin/catrez # used for copying resource forks @@ -128,7 +128,7 @@ __OFLAG = -a0 %.root : %.asm ; $(AS) $(ASFLAGS) $< # Resource descriptions in REZ format - %.r : %.rez ; $(REZ) -c $(REZFLAGS) $< + %.r : %.rez ; $(REZ) -o $@ -c $(REZFLAGS) $< # Executables %$E : %$O ; $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) diff --git a/rinclude/builddate.rez b/rinclude/builddate.rez new file mode 100644 index 0000000..f622b41 --- /dev/null +++ b/rinclude/builddate.rez @@ -0,0 +1,15 @@ +/* + * This file is used to specify the build date in a programs resource + * fork. It is used by #including it in the program *.rez file. + * + * $Id: builddate.rez,v 1.1 1998/02/14 23:56:39 gdr-ftp Exp $ + */ + +#define BUILD_DATE "Build Date: " $$Date + +/* + Unfortunately, this mechanism doesn't seem to work. It gets zeros for the + month and hour fields: + $$Format("%d/%d/%d %d:%d",$$Year,$$Month,$$Day,$$Hour,$$Minute) +*/ +