Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build


  47 ROOTETC=        $(ROOT)/etc
  48 ROOTSHLIB=      $(ROOT)/usr/share/lib
  49 ROOTBIN32=      $(ROOTBIN)/$(MACH32)
  50 ROOTBIN64=      $(ROOTBIN)/$(MACH64)
  51 
  52 ROOTPROG=       $(PROG:%=$(ROOTBIN)/%)
  53 ROOTLIBPROG=    $(PROG:%=$(ROOTLIB)/%)
  54 ROOT4LIBPROG=   $(PROG:%=$(ROOT4LIB)/%)
  55 ROOTETCPROG=    $(PROG:%=$(ROOTETC)/%)
  56 ROOTPROG64=     $(PROG:%=$(ROOTBIN64)/%)
  57 ROOTPROG32=     $(PROG:%=$(ROOTBIN32)/%)
  58 
  59 ISAEXEC=        $(ROOT)/usr/lib/isaexec
  60 
  61 # storing LDLIBS in two macros allows reordering of options
  62 LDLIBS.cmd =    $(ENVLDLIBS1)  $(ENVLDLIBS2)  $(ENVLDLIBS3)
  63 LDLIBS =        $(LDLIBS.cmd)
  64 
  65 LDFLAGS.cmd = \
  66         $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
  67         $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)

  68 
  69 LDFLAGS =       $(LDFLAGS.cmd)
  70 
  71 $(ROOTBIN)/%: %
  72         $(INS.file)
  73 
  74 $(ROOTLIB)/%: %
  75         $(INS.file)
  76 
  77 $(ROOT4LIB)/%: %
  78         $(INS.file)
  79 
  80 $(ROOTETC)/%: %
  81         $(INS.file)
  82 
  83 $(ROOTBIN64)/%: %
  84         $(INS.file)
  85 
  86 $(ROOTBIN32)/%: %
  87         $(INS.file)


  47 ROOTETC=        $(ROOT)/etc
  48 ROOTSHLIB=      $(ROOT)/usr/share/lib
  49 ROOTBIN32=      $(ROOTBIN)/$(MACH32)
  50 ROOTBIN64=      $(ROOTBIN)/$(MACH64)
  51 
  52 ROOTPROG=       $(PROG:%=$(ROOTBIN)/%)
  53 ROOTLIBPROG=    $(PROG:%=$(ROOTLIB)/%)
  54 ROOT4LIBPROG=   $(PROG:%=$(ROOT4LIB)/%)
  55 ROOTETCPROG=    $(PROG:%=$(ROOTETC)/%)
  56 ROOTPROG64=     $(PROG:%=$(ROOTBIN64)/%)
  57 ROOTPROG32=     $(PROG:%=$(ROOTBIN32)/%)
  58 
  59 ISAEXEC=        $(ROOT)/usr/lib/isaexec
  60 
  61 # storing LDLIBS in two macros allows reordering of options
  62 LDLIBS.cmd =    $(ENVLDLIBS1)  $(ENVLDLIBS2)  $(ENVLDLIBS3)
  63 LDLIBS =        $(LDLIBS.cmd)
  64 
  65 LDFLAGS.cmd = \
  66         $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
  67         $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) \
  68         -Bdirect
  69 
  70 LDFLAGS =       $(LDFLAGS.cmd)
  71 
  72 $(ROOTBIN)/%: %
  73         $(INS.file)
  74 
  75 $(ROOTLIB)/%: %
  76         $(INS.file)
  77 
  78 $(ROOT4LIB)/%: %
  79         $(INS.file)
  80 
  81 $(ROOTETC)/%: %
  82         $(INS.file)
  83 
  84 $(ROOTBIN64)/%: %
  85         $(INS.file)
  86 
  87 $(ROOTBIN32)/%: %
  88         $(INS.file)