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/liblddbg/Makefile.targ
          +++ new/usr/src/cmd/sgs/liblddbg/Makefile.targ
↓ open down ↓ 18 lines elided ↑ open up ↑
  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   25  # Copyright 2016 RackTop Systems.
  26   26  # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  27   27  #
  28   28  
  29      -pics/%.o:       ../common/%.c
       29 +pics/%.o:       $(SRCDIR)/common/%.c
  30   30                  $(COMPILE.c) -o $@ $<
  31   31                  $(POST_PROCESS_O)
  32   32  
  33      -pics/%.o:       $(SGSTOOLS)/common/%.c
       33 +pics/%.o:       $(SGSCOMMON)/%.c
  34   34                  $(COMPILE.c) -o $@ $<
  35   35                  $(POST_PROCESS_O)
  36   36  
  37      -pics/%32.o:     ../common/%.c
       37 +pics/%32.o:     $(SRCDIR)/common/%.c
  38   38                  $(COMPILE.c) -o $@ $<
  39   39                  $(POST_PROCESS_O)
  40   40  
  41      -pics/%64.o:     ../common/%.c
       41 +pics/%64.o:     $(SRCDIR)/common/%.c
  42   42                  $(COMPILE.c) -D_ELF64 -o $@ $<
  43   43                  $(POST_PROCESS_O)
  44   44  
  45   45  $(LIBLINKS):
  46   46                  -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
  47   47  
  48   48  delete:
  49   49                  $(RM) $(DYNLIB)
  50   50  
  51      -# Special target for native builds (ie. when we need to build a version of ld
  52      -# to build a version of ld :-).
  53      -
  54      -native:         $(SGSLIBDIR)/$(LIBLINKS)
  55      -
  56   51  $(PICS):        pics
  57      -
  58      -$(SGSLIBDIR)/$(DYNLIB): $(PICS) $(SGSLIBDIR)
  59      -                $(BUILD.SO)
  60      -                $(POST_PROCESS_SO)
  61      -
  62      -$(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
  63      -                -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
  64      -                $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
  65   52  
  66   53  include         $(SRC)/lib/Makefile.targ
  67   54  include         $(SRC)/cmd/sgs/Makefile.targ
  68   55  
  69   56  # Derived source and header files (messaging).
  70   57  
  71   58  catalog:        $(BLTMESG)
  72   59  
  73   60  chkmsg:         $(LIBSRCS) $(CHKSRCS)
  74   61                  sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
  75   62  
  76   63  $(BLTDEFS) + \
  77   64  $(BLTDATA) + \
  78   65  $(BLTMESG):     $(SGSMSGALL)
  79   66                  $(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX