Print this page
4029 remove tonic build bits


  57 
  58 PRE_POUND=                              pre\#
  59 POUND_SIGN=                             $(PRE_POUND:pre\%=%)
  60 
  61 NOT_RELEASE_BUILD=
  62 INTERNAL_RELEASE_BUILD=                 $(POUND_SIGN)
  63 RELEASE_BUILD=                          $(POUND_SIGN)
  64 $(RELEASE_BUILD)NOT_RELEASE_BUILD=      $(POUND_SIGN)
  65 $(RELEASE_BUILD)INTERNAL_RELEASE_BUILD=
  66 PATCH_BUILD=                            $(POUND_SIGN)
  67 
  68 # SPARC_BLD is '#' for an Intel build.
  69 # INTEL_BLD is '#' for a Sparc build.
  70 SPARC_BLD_1=    $(MACH:i386=$(POUND_SIGN))
  71 SPARC_BLD=      $(SPARC_BLD_1:sparc=)
  72 INTEL_BLD_1=    $(MACH:sparc=$(POUND_SIGN))
  73 INTEL_BLD=      $(INTEL_BLD_1:i386=)
  74 
  75 STRIP_COMMENTS= $(INTERNAL_RELEASE_BUILD)
  76 
  77 # Are we building tonic closedbins? Unless you have used the
  78 # -O flag to nightly or bldenv, leave the definition of TONICBUILD
  79 # as $(POUND_SIGN).
  80 #
  81 # IF YOU CHANGE CLOSEDROOT, you MUST change install.bin
  82 # to match the new definition.
  83 TONICBUILD=     $(POUND_SIGN)
  84 $(TONICBUILD)CLOSEDROOT= $(ROOT)-closed
  85 
  86 
  87 # The variables below control the compilers used during the build.
  88 # There are a number of permutations.
  89 #
  90 # __GNUC and __SUNC control (and indicate) the primary compiler.  Whichever
  91 # one is not POUND_SIGN is the primary, with the other as the shadow.  They
  92 # may also be used to control entirely compiler-specific Makefile assignments.
  93 # __SUNC and Sun Studio are the default.
  94 #
  95 # __GNUC64 indicates that the 64bit build should use the GNU C compiler.
  96 # There is no Sun C analogue.
  97 #
  98 # The following version-specific options are operative regardless of which
  99 # compiler is primary, and control the versions of the given compilers to be
 100 # used.  They also allow compiler-version specific Makefile fragments.
 101 #
 102 
 103 __GNUC=                 $(POUND_SIGN)
 104 $(__GNUC)__SUNC=        $(POUND_SIGN)
 105 __GNUC64=               $(__GNUC)
 106 


 210 JSTYLE=         $(ONBLD_TOOLS)/bin/jstyle
 211 
 212 DOT_H_CHECK=    \
 213         @$(ECHO) "checking $<"; $(CSTYLE) $< $(CSTYLE_TAIL); \
 214         $(HDRCHK) $< $(HDRCHK_TAIL)
 215 
 216 DOT_X_CHECK=    \
 217         @$(ECHO) "checking $<"; $(RPCGEN) -C -h $< | $(CSTYLE) $(CSTYLE_TAIL); \
 218         $(RPCGEN) -C -h $< | $(HDRCHK) $< $(HDRCHK_TAIL)
 219 
 220 DOT_C_CHECK=    \
 221         @$(ECHO) "checking $<"; $(CSTYLE) $< $(CSTYLE_TAIL)
 222 
 223 MANIFEST_CHECK= \
 224         @$(ECHO) "checking $<"; \
 225         SVCCFG_DTD=$(SRC)/cmd/svc/dtd/service_bundle.dtd.1 \
 226         SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/global.db \
 227         SVCCFG_CONFIGD_PATH=$(SRC)/cmd/svc/configd/svc.configd-native \
 228         $(SRC)/cmd/svc/svccfg/svccfg-native validate $<
 229 
 230 #
 231 # IMPORTANT:: If you change any of INS.file, INS.dir, INS.rename,
 232 # INS.link or INS.symlink here, then you must also change the
 233 # corresponding override definitions in $CLOSED/Makefile.tonic.
 234 # If you do not do this, then the closedbins build for the OpenSolaris
 235 # community will break. PS, the gatekeepers will be upset too.
 236 INS.file=       $(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $<
 237 INS.dir=        $(INS) -s -d -m $(DIRMODE) $@
 238 # installs and renames at once
 239 #
 240 INS.rename=     $(INS.file); $(MV) $(@D)/$(<F) $@
 241 
 242 # install a link
 243 INSLINKTARGET=  $<
 244 INS.link=       $(RM) $@; $(LN) $(INSLINKTARGET) $@
 245 INS.symlink=    $(RM) $@; $(SYMLINK) $(INSLINKTARGET) $@
 246 
 247 #
 248 # Python bakes the mtime of the .py file into the compiled .pyc and
 249 # rebuilds if the baked-in mtime != the mtime of the source file
 250 # (rather than only if it's less than), thus when installing python
 251 # files we must make certain to not adjust the mtime of the source
 252 # (.py) file.
 253 #
 254 INS.pyfile=     $(INS.file); $(TOUCH) -r $< $@
 255 




  57 
  58 PRE_POUND=                              pre\#
  59 POUND_SIGN=                             $(PRE_POUND:pre\%=%)
  60 
  61 NOT_RELEASE_BUILD=
  62 INTERNAL_RELEASE_BUILD=                 $(POUND_SIGN)
  63 RELEASE_BUILD=                          $(POUND_SIGN)
  64 $(RELEASE_BUILD)NOT_RELEASE_BUILD=      $(POUND_SIGN)
  65 $(RELEASE_BUILD)INTERNAL_RELEASE_BUILD=
  66 PATCH_BUILD=                            $(POUND_SIGN)
  67 
  68 # SPARC_BLD is '#' for an Intel build.
  69 # INTEL_BLD is '#' for a Sparc build.
  70 SPARC_BLD_1=    $(MACH:i386=$(POUND_SIGN))
  71 SPARC_BLD=      $(SPARC_BLD_1:sparc=)
  72 INTEL_BLD_1=    $(MACH:sparc=$(POUND_SIGN))
  73 INTEL_BLD=      $(INTEL_BLD_1:i386=)
  74 
  75 STRIP_COMMENTS= $(INTERNAL_RELEASE_BUILD)
  76 










  77 # The variables below control the compilers used during the build.
  78 # There are a number of permutations.
  79 #
  80 # __GNUC and __SUNC control (and indicate) the primary compiler.  Whichever
  81 # one is not POUND_SIGN is the primary, with the other as the shadow.  They
  82 # may also be used to control entirely compiler-specific Makefile assignments.
  83 # __SUNC and Sun Studio are the default.
  84 #
  85 # __GNUC64 indicates that the 64bit build should use the GNU C compiler.
  86 # There is no Sun C analogue.
  87 #
  88 # The following version-specific options are operative regardless of which
  89 # compiler is primary, and control the versions of the given compilers to be
  90 # used.  They also allow compiler-version specific Makefile fragments.
  91 #
  92 
  93 __GNUC=                 $(POUND_SIGN)
  94 $(__GNUC)__SUNC=        $(POUND_SIGN)
  95 __GNUC64=               $(__GNUC)
  96 


 200 JSTYLE=         $(ONBLD_TOOLS)/bin/jstyle
 201 
 202 DOT_H_CHECK=    \
 203         @$(ECHO) "checking $<"; $(CSTYLE) $< $(CSTYLE_TAIL); \
 204         $(HDRCHK) $< $(HDRCHK_TAIL)
 205 
 206 DOT_X_CHECK=    \
 207         @$(ECHO) "checking $<"; $(RPCGEN) -C -h $< | $(CSTYLE) $(CSTYLE_TAIL); \
 208         $(RPCGEN) -C -h $< | $(HDRCHK) $< $(HDRCHK_TAIL)
 209 
 210 DOT_C_CHECK=    \
 211         @$(ECHO) "checking $<"; $(CSTYLE) $< $(CSTYLE_TAIL)
 212 
 213 MANIFEST_CHECK= \
 214         @$(ECHO) "checking $<"; \
 215         SVCCFG_DTD=$(SRC)/cmd/svc/dtd/service_bundle.dtd.1 \
 216         SVCCFG_REPOSITORY=$(SRC)/cmd/svc/seed/global.db \
 217         SVCCFG_CONFIGD_PATH=$(SRC)/cmd/svc/configd/svc.configd-native \
 218         $(SRC)/cmd/svc/svccfg/svccfg-native validate $<
 219 






 220 INS.file=       $(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $<
 221 INS.dir=        $(INS) -s -d -m $(DIRMODE) $@
 222 # installs and renames at once
 223 #
 224 INS.rename=     $(INS.file); $(MV) $(@D)/$(<F) $@
 225 
 226 # install a link
 227 INSLINKTARGET=  $<
 228 INS.link=       $(RM) $@; $(LN) $(INSLINKTARGET) $@
 229 INS.symlink=    $(RM) $@; $(SYMLINK) $(INSLINKTARGET) $@
 230 
 231 #
 232 # Python bakes the mtime of the .py file into the compiled .pyc and
 233 # rebuilds if the baked-in mtime != the mtime of the source file
 234 # (rather than only if it's less than), thus when installing python
 235 # files we must make certain to not adjust the mtime of the source
 236 # (.py) file.
 237 #
 238 INS.pyfile=     $(INS.file); $(TOUCH) -r $< $@
 239