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/librtld/Makefile.targ
          +++ new/usr/src/cmd/sgs/librtld/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 2006 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  $(LIBLINKS):
  33   33                  -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
  34   34  
  35   35  delete:
  36   36                  $(RM) $(DYNLIB)
  37   37  
  38   38  # Special target for native builds (ie. when we need to build a version of ld
  39   39  # to build a version of ld :-).
  40   40  
  41      -native:         $(SGSPROTO)/$(DYNLIB)
       41 +native:         $(SGSLIBDIR)/$(LIBLINKS)
  42   42  
  43      -$(SGSPROTO)/$(DYNLIB): \
  44      -                pics .WAIT $$(PICS)
       43 +$(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)
  45   44                  $(BUILD.SO)
  46   45                  $(POST_PROCESS_SO)
  47      -                -@$(RM) $(SGSPROTO)/$(LIBLINKS)
  48      -                $(SYMLINK) $(DYNLIB) $(SGSPROTO)/$(LIBLINKS)
       46 +
       47 +$(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
       48 +                -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
       49 +                $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
  49   50  
  50   51  include         $(SRC)/lib/Makefile.targ
  51   52  include         $(SRC)/cmd/sgs/Makefile.targ
  52   53  
  53   54  
  54   55  # Derived source and header files (messaging).
  55   56  
  56   57  catalog:        $(BLTMESG)
  57   58  
  58   59  chkmsg:         $(LINTSRCS)
  59   60                  sh $(CHKMSG) $(CHKMSGFLAGS) $(LINTSRCS)
  60   61  
  61   62  $(BLTDEFS) + \
  62   63  $(BLTDATA) + \
  63   64  $(BLTMESG):     $(SGSMSGALL)
  64   65                  $(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX