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>


  40 pics/%64.o:     ../common/%.c
  41                 $(COMPILE.c) -D_ELF64 -o $@ $<
  42                 $(POST_PROCESS_O)
  43 
  44 $(LIBLINKS):
  45                 -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
  46 
  47 delete:
  48                 $(RM) $(DYNLIB)
  49 
  50 .PARALLEL:      $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64)
  51 
  52 lint:           $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \
  53                     .WAIT $(SGSLINTOUT)
  54 
  55 # Special target for native builds (ie. when we need to build a version of ld
  56 # to build a version of ld :-).
  57 
  58 native:         $(SGSLIBDIR)/$(LIBLINKS)
  59 
  60 $(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)


  61                 $(BUILD.SO)
  62                 $(POST_PROCESS_SO)
  63 
  64 $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
  65                 -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
  66                 $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
  67 
  68 include         $(SRC)/lib/Makefile.targ
  69 include         $(SRC)/cmd/sgs/Makefile.targ
  70 
  71 # Derived source and header files (messaging).
  72 
  73 catalog:        $(BLTMESG)
  74 
  75 chkmsg:         $(LIBSRCS) $(CHKSRCS)
  76                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
  77 
  78 $(BLTDEFS) + \
  79 $(BLTDATA) + \
  80 $(BLTMESG):     $(SGSMSGALL)


  40 pics/%64.o:     ../common/%.c
  41                 $(COMPILE.c) -D_ELF64 -o $@ $<
  42                 $(POST_PROCESS_O)
  43 
  44 $(LIBLINKS):
  45                 -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
  46 
  47 delete:
  48                 $(RM) $(DYNLIB)
  49 
  50 .PARALLEL:      $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64)
  51 
  52 lint:           $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \
  53                     .WAIT $(SGSLINTOUT)
  54 
  55 # Special target for native builds (ie. when we need to build a version of ld
  56 # to build a version of ld :-).
  57 
  58 native:         $(SGSLIBDIR)/$(LIBLINKS)
  59 
  60 $(PICS):        pics
  61 
  62 $(SGSLIBDIR)/$(DYNLIB): $(PICS) $(SGSLIBDIR)
  63                 $(BUILD.SO)
  64                 $(POST_PROCESS_SO)
  65 
  66 $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
  67                 -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
  68                 $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
  69 
  70 include         $(SRC)/lib/Makefile.targ
  71 include         $(SRC)/cmd/sgs/Makefile.targ
  72 
  73 # Derived source and header files (messaging).
  74 
  75 catalog:        $(BLTMESG)
  76 
  77 chkmsg:         $(LIBSRCS) $(CHKSRCS)
  78                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
  79 
  80 $(BLTDEFS) + \
  81 $(BLTDATA) + \
  82 $(BLTMESG):     $(SGSMSGALL)