mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-27 00:29:55 +00:00
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.
This commit is contained in:
parent
d9b5117780
commit
2c9b8b7381
15
build.tools/builddate.rez
Normal file
15
build.tools/builddate.rez
Normal file
@ -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)
|
||||
*/
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
15
rinclude/builddate.rez
Normal file
15
rinclude/builddate.rez
Normal file
@ -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)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user