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


  57 
  58 CLOBBERFILES += htemp1 htemp2
  59 
  60 ROOTSPELLD = $(ROOTLIB)/spell
  61 ROOTVARADMD = $(ROOT)/var/adm
  62 ROOTDIRS= $(ROOTSPELLD)
  63 
  64 BINF= spell
  65 SPELLF= spellprog hashmake hashcheck spellin hstop hlistb hlista compress
  66 VARADMF= spellhist
  67 
  68 ROOTBINF = $(BINF:%=$(ROOTBIN)/%)
  69 ROOTSPELLF = $(SPELLF:%=$(ROOTSPELLD)/%)
  70 ROOTVARADMF = $(VARADMF:%=$(ROOTVARADMD)/%)
  71 
  72 HASHFILEMODE = 0644
  73 $(ROOTSPELLD)/hstop $(ROOTSPELLD)/hlistb \
  74 $(ROOTSPELLD)/hlista := FILEMODE =      0644
  75 $(ROOTVARADMF) :=       FILEMODE =      0666
  76 






  77 spellin1 hashmk1 := CC = $(NATIVECC)
  78 spellin1 hashmk1 := POST_PROCESS =
  79 spellin1 hashmk1 := CPPFLAGS =
  80 spellin1 hashmk1 := LDFLAGS =


  81 
  82 $(ROOTSPELLD)/% $(ROOTVARADMD)/% : %
  83         $(INS.file)
  84 
  85 .KEEP_STATE:
  86 
  87 all:    $(PROG) $(TXTS)
  88 
  89 spellprog:              $(SPELLPROGOBJ)
  90                         $(LINK.c) $(SPELLPROGOBJ) -o $@ $(LDLIBS)
  91                         $(POST_PROCESS)
  92 
  93 spellin spellin1:       $(SPELLINOBJ)
  94                         $(LINK.c) $(SPELLINOBJ) -o $@ $(LDLIBS)
  95                         $(POST_PROCESS)
  96 
  97 spellhist:
  98                         $(ECHO) '\c' > spellhist
  99 
 100 hashcheck:              $(HASHCHECKOBJ)




  57 
  58 CLOBBERFILES += htemp1 htemp2
  59 
  60 ROOTSPELLD = $(ROOTLIB)/spell
  61 ROOTVARADMD = $(ROOT)/var/adm
  62 ROOTDIRS= $(ROOTSPELLD)
  63 
  64 BINF= spell
  65 SPELLF= spellprog hashmake hashcheck spellin hstop hlistb hlista compress
  66 VARADMF= spellhist
  67 
  68 ROOTBINF = $(BINF:%=$(ROOTBIN)/%)
  69 ROOTSPELLF = $(SPELLF:%=$(ROOTSPELLD)/%)
  70 ROOTVARADMF = $(VARADMF:%=$(ROOTVARADMD)/%)
  71 
  72 HASHFILEMODE = 0644
  73 $(ROOTSPELLD)/hstop $(ROOTSPELLD)/hlistb \
  74 $(ROOTSPELLD)/hlista := FILEMODE =      0644
  75 $(ROOTVARADMF) :=       FILEMODE =      0666
  76 
  77 #
  78 # The native versions of these share targets with the target ones. Because of
  79 # that it is important that we override these variables. For example, LDLIBS
  80 # will add in the default LDLIBS.cmd which means that we'll link against the
  81 # wrong versions of libc.
  82 #
  83 spellin1 hashmk1 := CC = $(NATIVECC)
  84 spellin1 hashmk1 := POST_PROCESS =
  85 spellin1 hashmk1 := CPPFLAGS =
  86 spellin1 hashmk1 := LDFLAGS = -Bdirect
  87 spellin1 hashmk1 := NATIVE_LIBS = libc.so
  88 spellin1 hashmk1 := LDLIBS =
  89 
  90 $(ROOTSPELLD)/% $(ROOTVARADMD)/% : %
  91         $(INS.file)
  92 
  93 .KEEP_STATE:
  94 
  95 all:    $(PROG) $(TXTS)
  96 
  97 spellprog:              $(SPELLPROGOBJ)
  98                         $(LINK.c) $(SPELLPROGOBJ) -o $@ $(LDLIBS)
  99                         $(POST_PROCESS)
 100 
 101 spellin spellin1:       $(SPELLINOBJ)
 102                         $(LINK.c) $(SPELLINOBJ) -o $@ $(LDLIBS)
 103                         $(POST_PROCESS)
 104 
 105 spellhist:
 106                         $(ECHO) '\c' > spellhist
 107 
 108 hashcheck:              $(HASHCHECKOBJ)