Print this page
7627 Build should be smarter about how SGSPROTO is created
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Kim Shrier <kshrier@racktopsystems.com>


  86                 $(COMPILE.c) -o $@ -D_ELF64 -DDO_RELOC_LIBLD $<
  87                 $(POST_PROCESS_O)
  88 
  89 
  90 $(LIBLINKS):
  91                 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  92 
  93 delete:
  94                 $(RM) $(DYNLIB)
  95 
  96 .PARALLEL:      $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64)
  97 
  98 lint:           $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \
  99                     .WAIT $(SGSLINTOUT)
 100 
 101 # Special target for native builds (ie. when we need to build a version of ld
 102 # to build a version of ld :-).
 103 
 104 native:         $(SGSLIBDIR)/$(LIBLINKS)
 105 
 106 $(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)


 107                 $(BUILD.SO)
 108                 $(POST_PROCESS_SO)
 109 
 110 $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
 111                 @$(RM) $(SGSLIBDIR)/$(LIBLINKS)
 112                 $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 113 
 114 include         $(SRC)/lib/Makefile.targ
 115 include         $(SRC)/cmd/sgs/Makefile.targ
 116 
 117 # Derived source and header files (messaging).
 118 
 119 catalog:        $(BLTMESG)
 120 
 121 chkmsg:         $(LIBSRCS) $(CHKSRCS)
 122                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
 123 
 124 $(BLTDEFS) + \
 125 $(BLTDATA):     $(SGSMSGTARG)
 126                 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)


  86                 $(COMPILE.c) -o $@ -D_ELF64 -DDO_RELOC_LIBLD $<
  87                 $(POST_PROCESS_O)
  88 
  89 
  90 $(LIBLINKS):
  91                 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  92 
  93 delete:
  94                 $(RM) $(DYNLIB)
  95 
  96 .PARALLEL:      $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64)
  97 
  98 lint:           $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \
  99                     .WAIT $(SGSLINTOUT)
 100 
 101 # Special target for native builds (ie. when we need to build a version of ld
 102 # to build a version of ld :-).
 103 
 104 native:         $(SGSLIBDIR)/$(LIBLINKS)
 105 
 106 $(PICS):        pics
 107 
 108 $(SGSLIBDIR)/$(DYNLIB): $(PICS) $(SGSLIBDIR)
 109                 $(BUILD.SO)
 110                 $(POST_PROCESS_SO)
 111 
 112 $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
 113                 @$(RM) $(SGSLIBDIR)/$(LIBLINKS)
 114                 $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 115 
 116 include         $(SRC)/lib/Makefile.targ
 117 include         $(SRC)/cmd/sgs/Makefile.targ
 118 
 119 # Derived source and header files (messaging).
 120 
 121 catalog:        $(BLTMESG)
 122 
 123 chkmsg:         $(LIBSRCS) $(CHKSRCS)
 124                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
 125 
 126 $(BLTDEFS) + \
 127 $(BLTDATA):     $(SGSMSGTARG)
 128                 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)