Print this page
7612 SGSPROTO lacks structure
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/libld/Makefile.targ
          +++ new/usr/src/cmd/sgs/libld/Makefile.targ
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# ident "%Z%%M% %I%     %E% SMI"
       25 +# Copyright 2016 RackTop Systems.
  26   26  #
  27   27  
  28   28  pics/%.o:       ../common/%.c
  29   29                  $(COMPILE.c) -o $@ $<
  30   30                  $(POST_PROCESS_O)
  31   31  
  32   32  pics/%32.o:     ../common/%.c
  33   33                  $(COMPILE.c) -o $@ $<
  34   34                  $(POST_PROCESS_O)
  35   35  
↓ open down ↓ 58 lines elided ↑ open up ↑
  94   94                  $(RM) $(DYNLIB)
  95   95  
  96   96  .PARALLEL:      $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64)
  97   97  
  98   98  lint:           $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \
  99   99                      .WAIT $(SGSLINTOUT)
 100  100  
 101  101  # Special target for native builds (ie. when we need to build a version of ld
 102  102  # to build a version of ld :-).
 103  103  
 104      -native:         $(SGSPROTO)/$(DYNLIB)
      104 +native:         $(SGSLIBDIR)/$(LIBLINKS)
 105  105  
 106      -$(SGSPROTO)/$(DYNLIB): \
 107      -                pics .WAIT $$(PICS)
      106 +$(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)
 108  107                  $(BUILD.SO)
 109  108                  $(POST_PROCESS_SO)
 110      -                @$(RM) $(SGSPROTO)/$(LIBLINKS)
 111      -                $(SYMLINK) $(DYNLIB) $(SGSPROTO)/$(LIBLINKS)
      109 +
      110 +$(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
      111 +                @$(RM) $(SGSLIBDIR)/$(LIBLINKS)
      112 +                $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 112  113  
 113  114  include         $(SRC)/lib/Makefile.targ
 114  115  include         $(SRC)/cmd/sgs/Makefile.targ
 115  116  
 116  117  # Derived source and header files (messaging).
 117  118  
 118  119  catalog:        $(BLTMESG)
 119  120  
 120  121  chkmsg:         $(LIBSRCS) $(CHKSRCS)
 121  122                  sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
 122  123  
 123  124  $(BLTDEFS) + \
 124  125  $(BLTDATA):     $(SGSMSGTARG)
 125  126                  $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
 126  127  
 127  128  $(BLTMESG):     $(SGSMSGALL)
 128  129                  $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX