Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/lvm/libmeta/Makefile.com
          +++ new/usr/src/lib/lvm/libmeta/Makefile.com
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# ident "%Z%%M% %I%     %E% SMI"
  26      -#
  27   25  
  28   26  LIBRARY=        libmeta.a 
  29   27  VERS=           .1 
  30   28  COMMON =        $(SRC)/common/lvm
  31   29  
  32   30  CMN_OBJS = md_crc.o md_convert.o md_revchk.o
  33   31  
  34   32  DERIVED_OBJS = \
  35   33          mdiox_xdr.o \
  36   34          meta_basic_xdr.o \
↓ open down ↓ 116 lines elided ↑ open up ↑
 153  151  all: $(LIBS)
 154  152  
 155  153  install debug: all $(ROOTLIBS) $(ROOTLINT) $(ROOTLINKS)
 156  154  
 157  155  objs/%.o profs/%.o pics/%.o: $(COMMON)/%.c
 158  156          $(COMPILE.c) -o $@ $<
 159  157          $(POST_PROCESS_O)
 160  158  
 161  159  mdiox_xdr.c: $(SRC)/uts/common/sys/lvm/mdiox.x
 162  160          $(RPCGEN) $(RPCGENFLAGS) -c -i 100 $(SRC)/uts/common/sys/lvm/mdiox.x | \
 163      -        nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
      161 +        /usr/xpg4/bin/awk  '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
 164  162  
 165  163  meta_basic_xdr.c: $(SRC)/uts/common/sys/lvm/meta_basic.x
 166  164          $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/meta_basic.x | \
 167      -        nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
      165 +        /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
 168  166  
 169  167  metad_clnt.c: $(SRC)/head/metad.x 
 170  168          $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metad.x -o $@
 171  169  
 172  170  metad_xdr.c: $(SRC)/head/metad.x
 173  171          $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metad.x -o $@
 174  172  
 175  173  metamed_clnt.c: $(SRC)/uts/common/sys/lvm/metamed.x
 176  174          $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/uts/common/sys/lvm/metamed.x | \
 177      -        nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
      175 +        /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
 178  176  
 179  177  metamed_xdr.c: $(SRC)/uts/common/sys/lvm/metamed.x 
 180  178          $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/metamed.x | \
 181      -        nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
      179 +        /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
 182  180  
 183  181  metamhd_clnt.c: $(SRC)/head/metamhd.x 
 184  182          $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metamhd.x -o $@
 185  183  
 186  184  metamhd_xdr.c: $(SRC)/head/metamhd.x 
 187  185          $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
 188  186  
 189  187  mhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
 190  188          $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
 191      -        nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
      189 +        /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
 192  190  
 193  191  mdmn_commd_xdr.c: $(SRC)/uts/common/sys/lvm/mdmn_commd.x
 194  192          $(RPCGEN) -c $(SRC)/uts/common/sys/lvm/mdmn_commd.x -o $@
 195  193  
 196  194  $(DCFILE):= XGETFLAGS = -c TRANSLATION_NOTE_LC_TIME -t
 197  195  
 198  196  $(DCFILE): $(DCFILES)
 199  197          $(CAT) $(DCFILES) > $(DCFILE)
 200  198  
 201  199  $(POFILE): $(MSGFILES)
 202  200          $(BUILDPO.msgfiles)
 203  201  
 204  202  _msg: $(MSGDOMAINPOFILE)
 205  203  
 206  204  _dc: $(DCMSGDOMAINPOFILE)
 207  205  
 208  206  include $(SRC)/lib/lvm/Makefile.targ
 209  207  include $(SRC)/Makefile.msg.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX