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) +*/ +