Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/Makefile
          +++ new/usr/src/cmd/sgs/Makefile
↓ open down ↓ 107 lines elided ↑ open up ↑
 108  108  _msg :=         TARGET= catalog
 109  109  _msg_gettext := TARGET= catalog
 110  110  _msg_sgsmsg :=  TARGET= catalog
 111  111  chkmsg :=       TARGET= chkmsg
 112  112  
 113  113  
 114  114  .KEEP_STATE:
 115  115  
 116  116  .PARALLEL:      $(SUBDIRS)
 117  117  
 118      -all install:    native-add .WAIT $(SUBDIRS)
      118 +all install:    $(SUBDIRS)
 119  119  
 120  120  include         $(SRC)/cmd/Makefile.targ
 121  121  
 122  122  # Messaging support
 123  123  #
 124  124  _msg: _msg_gettext _msg_sgsmsg
 125  125  
 126  126  _msg_gettext: $(MSGDOMAIN)/$(POFILE)
 127  127  
 128      -# $(MACH)/sgsmsg must be built before we can descend into $(MSGDIR)
 129      -_msg_sgsmsg: native-add .WAIT $(MSGDIR)
      128 +_msg_sgsmsg: $(MSGDIR)
 130  129  
 131  130  $(MSGDOMAIN)/$(POFILE): \
 132  131                  $(MSGDOMAIN) $(POFILE)
 133  132  
 134  133  $(POFILE):      $(POSUBDIRS)
 135  134                  $(RM) $(POFILE)
 136  135                  cat $(POFILES) > $(POFILE)
 137  136  
 138  137  $(MSGDIR):      $(MSGSUBDIRS) FRC
 139  138                  @ cd $@; pwd; $(MAKE) $(TARGET)
↓ open down ↓ 2 lines elided ↑ open up ↑
 142  141  
 143  142  check:          chkmsg
 144  143  
 145  144  # built from lib/Makefile
 146  145  install_lib:    FRC
 147  146                  @ cd lex; pwd; $(MAKE) $@
 148  147                  @ cd yacc; pwd; $(MAKE) $@
 149  148  
 150  149  lint:
 151  150  
 152      -delete \
 153      -clean clobber:  native-clobber .WAIT $(SUBDIRS) $(MSGDIR)
      151 +delete clean clobber: $(SUBDIRS) $(MSGDIR)
 154  152  
 155  153  $(SUBDIRS):     FRC
 156  154                  @ cd $@; pwd; $(MAKE) $(TARGET)
 157  155  
 158      -
 159      -# Integration of ld and ld.so.1 in some developement cycles requires that both
 160      -# of these modules be built using the new ld.  This `native' target allows us
 161      -# to build a local ld which will then be used to build the delivered version of
 162      -# itself and ld.so.1.  Once this new functionality appears in the standard ld
 163      -# this target can be disabled.
 164      -
 165      -native-add:     FRC
 166      -                @ cd tools/$(MACH); pwd; $(MAKE) native
 167      -                @ cd libconv/$(MACH); pwd; $(MAKE)
 168      -                @ cd libelf/$(MACH); pwd; $(MAKE) native
 169      -                @ cd liblddbg/$(MACH); pwd; $(MAKE) native
 170      -                @ cd libldstab/$(MACH); pwd; $(MAKE) native
 171      -                @ cd libld/$(MACH); pwd; $(MAKE) native
 172      -                @ cd ld/$(MACH); pwd; $(MAKE) native
 173      -
 174      -native-clobber:
 175      -                @ cd tools; pwd; $(MAKE) $(TARGET)
 176      -                $(RM) -r proto/$(MACH)
 177      -
 178  156  FRC:
 179  157  
 180  158  #
 181  159  # Cross-reference customization: ignore the directories named by XRPRUNE,
 182  160  # and tweak the file globs slightly.
 183  161  #
 184      -XRPRUNE=        rtld.4.x packages abi
      162 +XRPRUNE=        rtld.4.x abi
 185  163  XRADD=          *.msg mapfile*
 186  164  XRDEL=          Makefile* kobj_*
 187  165  
 188  166  #
 189  167  # Establish a set of directories for xref to search.  As there are duplicates
 190  168  # of things like headers, and only one file will be added to the xref database,
 191  169  # we want xref to list the source file.
 192  170  #
 193  171  XRDIRS=         . \
 194  172                  ../../common/elfcap \
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX