Print this page
include build stamp in unix


 107 # with release, version and machine set as follows:
 108 #
 109 #       release: contents of $(RELEASE) (Spaces replaced by '_')
 110 #       version: contents of $(PATCHID) (Spaces replaced by '_')
 111 #       machine: contents of $(UNAME_M)
 112 #
 113 # Build environment information is only contained in the comment section.
 114 #
 115 # The version string, normally the variable VERSION, is set to display
 116 # environmental information temporarily while in development because
 117 # it provides a little more useful information.
 118 #
 119 VERSION_STRING  = ($(ECHO) $$LOGNAME [\`basename $$CODEMGR_WS\`] \\\c; date +%D)
 120 $(INTERNAL_RELEASE_BUILD)VERSION_STRING = $(ECHO) $(PATCHID)
 121 
 122 $(OBJS_DIR)/vers.o: $(OBJECTS)
 123         $(COMPILE.c) -DUTS_RELEASE=\"`$(ECHO) $(RELEASE) | sed -e 's/ /_/g'`\" \
 124             -DUTS_VERSION=\"`$(VERSION_STRING) | sed -e 's/ /_/g'`\" \
 125             -DUTS_PLATFORM=\"$(UNAME_M)\" -o $@ $(SRC)/uts/common/os/vers.c
 126         $(CTFCONVERT_O)

 127         $(POST_PROCESS_O)
 128 
 129 $(LINTS_DIR)/vers.ln: $(SRC)/uts/common/os/vers.c
 130         @($(LHEAD) $(LINT.c) -DUTS_RELEASE=\"\" -DUTS_VERSION=\"\" \
 131             -DUTS_PLATFORM=\"\" $(SRC)/uts/common/os/vers.c $(LTAIL))
 132 
 133 #
 134 #       Installation targets and rules:
 135 #
 136 $(ROOT_MOD_DIR) $(USR_MOD_DIR):
 137         -$(INS.dir)
 138 
 139 $(ROOT_MOD_DIRS_32):    $(ROOT_MOD_DIR)
 140         -$(INS.dir)
 141 
 142 $(USR_MOD_DIRS_32):     $(USR_MOD_DIR)
 143         -$(INS.dir)
 144 
 145 $(ROOT_MOD_DIR)/%:      $(OBJS_DIR)/% $(ROOT_MOD_DIR) FRC
 146         $(INS.file)




 107 # with release, version and machine set as follows:
 108 #
 109 #       release: contents of $(RELEASE) (Spaces replaced by '_')
 110 #       version: contents of $(PATCHID) (Spaces replaced by '_')
 111 #       machine: contents of $(UNAME_M)
 112 #
 113 # Build environment information is only contained in the comment section.
 114 #
 115 # The version string, normally the variable VERSION, is set to display
 116 # environmental information temporarily while in development because
 117 # it provides a little more useful information.
 118 #
 119 VERSION_STRING  = ($(ECHO) $$LOGNAME [\`basename $$CODEMGR_WS\`] \\\c; date +%D)
 120 $(INTERNAL_RELEASE_BUILD)VERSION_STRING = $(ECHO) $(PATCHID)
 121 
 122 $(OBJS_DIR)/vers.o: $(OBJECTS)
 123         $(COMPILE.c) -DUTS_RELEASE=\"`$(ECHO) $(RELEASE) | sed -e 's/ /_/g'`\" \
 124             -DUTS_VERSION=\"`$(VERSION_STRING) | sed -e 's/ /_/g'`\" \
 125             -DUTS_PLATFORM=\"$(UNAME_M)\" -o $@ $(SRC)/uts/common/os/vers.c
 126         $(CTFCONVERT_O)
 127         $(PROCESS_BUILDSTAMP) $@
 128         $(POST_PROCESS_O)
 129 
 130 $(LINTS_DIR)/vers.ln: $(SRC)/uts/common/os/vers.c
 131         @($(LHEAD) $(LINT.c) -DUTS_RELEASE=\"\" -DUTS_VERSION=\"\" \
 132             -DUTS_PLATFORM=\"\" $(SRC)/uts/common/os/vers.c $(LTAIL))
 133 
 134 #
 135 #       Installation targets and rules:
 136 #
 137 $(ROOT_MOD_DIR) $(USR_MOD_DIR):
 138         -$(INS.dir)
 139 
 140 $(ROOT_MOD_DIRS_32):    $(ROOT_MOD_DIR)
 141         -$(INS.dir)
 142 
 143 $(USR_MOD_DIRS_32):     $(USR_MOD_DIR)
 144         -$(INS.dir)
 145 
 146 $(ROOT_MOD_DIR)/%:      $(OBJS_DIR)/% $(ROOT_MOD_DIR) FRC
 147         $(INS.file)