Print this page
XXX Remove nawk(1)


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 1996, 2001-2003 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # ident "%Z%%M% %I%     %E% SMI"
  27 #
  28 # Makefile for logical volume management 
  29 #
  30 
  31 PROG= rpc.metamhd 
  32 
  33 RPCMOD = metamhd
  34 
  35 DERIVED_FILES = \
  36                 $(RPCMOD)_svc.c \
  37                 $(RPCMOD)_xdr.c \
  38                 mhdx_xdr.c
  39 
  40 OBJECTS=        \
  41                 mhd_drive.o \
  42                 mhd_error.o \
  43                 mhd_failfast.o \
  44                 mhd_freeresult.o \
  45                 mhd_init.o \
  46                 mhd_mem.o \
  47                 mhd_metamhd.o \


 108 
 109 lint:
 110         ${LINT.c} $(LINTFLAGS) ${LINTSRCS}
 111 
 112 clean:
 113         ${RM} ${OBJECTS} ${DERIVED_FILES} *.o a.out core metamhd.x
 114 
 115 clobber: clean
 116         ${RM} $(PROG)
 117 
 118 metamhd_svc.c: $(SRC)/head/metamhd.x
 119         $(CP) $(SRC)/head/metamhd.x .
 120         $(RPCGEN) $(RPCGENFLAGS_SERVER) metamhd.x -o $@
 121         ${RM} metamhd.x
 122 
 123 metamhd_xdr.c: $(SRC)/head/metamhd.x
 124         $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
 125 
 126 mhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
 127         $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
 128         nawk '{sub(/uts\/common\/sys\/lvm/, "head") ; print $$0}' >$@


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 1996, 2001-2003 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #


  26 # Makefile for logical volume management 
  27 #
  28 
  29 PROG= rpc.metamhd 
  30 
  31 RPCMOD = metamhd
  32 
  33 DERIVED_FILES = \
  34                 $(RPCMOD)_svc.c \
  35                 $(RPCMOD)_xdr.c \
  36                 mhdx_xdr.c
  37 
  38 OBJECTS=        \
  39                 mhd_drive.o \
  40                 mhd_error.o \
  41                 mhd_failfast.o \
  42                 mhd_freeresult.o \
  43                 mhd_init.o \
  44                 mhd_mem.o \
  45                 mhd_metamhd.o \


 106 
 107 lint:
 108         ${LINT.c} $(LINTFLAGS) ${LINTSRCS}
 109 
 110 clean:
 111         ${RM} ${OBJECTS} ${DERIVED_FILES} *.o a.out core metamhd.x
 112 
 113 clobber: clean
 114         ${RM} $(PROG)
 115 
 116 metamhd_svc.c: $(SRC)/head/metamhd.x
 117         $(CP) $(SRC)/head/metamhd.x .
 118         $(RPCGEN) $(RPCGENFLAGS_SERVER) metamhd.x -o $@
 119         ${RM} metamhd.x
 120 
 121 metamhd_xdr.c: $(SRC)/head/metamhd.x
 122         $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
 123 
 124 mhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
 125         $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
 126         /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head") ; print $$0}' >$@