Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
670734c2ee137c587411795c6f82566c9d3729b7coar# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License, Version 1.0 only
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# (the "License"). You may not use this file except in compliance
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# with the License.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# or http://www.opensolaris.org/os/licensing.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# See the License for the specific language governing permissions
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# and limitations under the License.
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard#
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# When distributing Covered Code, include this CDDL HEADER in each
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# If applicable, add the following below this CDDL HEADER, with the
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# fields enclosed by brackets "[]" replaced with your own identifying
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# information: Portions Copyright [yyyy] [name of copyright owner]
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# CDDL HEADER END
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb#
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb#
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb# Copyright 1996, 2001-2003 Sun Microsystems, Inc. All rights reserved.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Use is subject to license terms.
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
f755f06050191550f77c825eff6b0e48a35b3e91dgaudet# ident "%Z%%M% %I% %E% SMI"
f755f06050191550f77c825eff6b0e48a35b3e91dgaudet#
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudet# Makefile for logical volume management
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj#
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manojPROG= rpc.metamhd
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manojRPCMOD = metamhd
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddardDERIVED_FILES = \
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard $(RPCMOD)_svc.c \
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard $(RPCMOD)_xdr.c \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard mhdx_xdr.c
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardOBJECTS= \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard mhd_drive.o \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard mhd_error.o \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard mhd_failfast.o \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard mhd_freeresult.o \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard mhd_init.o \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard mhd_mem.o \
75960f20f88dad6bc67892c711c429946063d133stoddard mhd_metamhd.o \
75960f20f88dad6bc67892c711c429946063d133stoddard mhd_set.o \
75960f20f88dad6bc67892c711c429946063d133stoddard mhd_synch.o \
75960f20f88dad6bc67892c711c429946063d133stoddard mhd_time.o
75960f20f88dad6bc67892c711c429946063d133stoddard
75960f20f88dad6bc67892c711c429946063d133stoddardLINTOBJECTS= \
75960f20f88dad6bc67892c711c429946063d133stoddard mhd_drive.o \
75960f20f88dad6bc67892c711c429946063d133stoddard mhd_error.o \
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj mhd_failfast.o \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj mhd_freeresult.o \
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj mhd_init.o \
f6a6245816cd866361da8c576b1f47c7a54b6610fanf mhd_mem.o \
f6a6245816cd866361da8c576b1f47c7a54b6610fanf mhd_metamhd.o \
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj mhd_set.o \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj mhd_synch.o \
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard mhd_time.o
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddardOBJECTS += $(DERIVED_FILES:.c=.o)
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardSRCS = $(OBJECTS:%.o=../%.c)
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardLINTSRCS = $(LINTOBJECTS:%.o=../%.c)
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard
2aae6faee508221efbeaba5547ca79b7a20ef047stoddardinclude ../../../Makefile.cmd
2aae6faee508221efbeaba5547ca79b7a20ef047stoddardinclude ../../Makefile.lvm
670734c2ee137c587411795c6f82566c9d3729b7coar
670734c2ee137c587411795c6f82566c9d3729b7coar
75960f20f88dad6bc67892c711c429946063d133stoddardMDLIBS =
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardLDLIBS += -ladm -lsocket -lnsl
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardPOFILES= $(OBJECTS:%.o=%.po)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
56ca30c968906053ae61acb218420667bb58d996rbb$(RPCMOD)_svc.c := RPCGENFLAGS += -A -K -1
56ca30c968906053ae61acb218420667bb58d996rbb
56ca30c968906053ae61acb218420667bb58d996rbbDEFINES += -D_REENTRANT
56ca30c968906053ae61acb218420667bb58d996rbbCFLAGS += $(DEFINES)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj#
56ca30c968906053ae61acb218420667bb58d996rbb#
0bff2f28ef945280c17099c142126178a78e1e54manojlint := LINTFLAGS += -m
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manoj.KEEP_STATE:
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard%.o: ../%.c
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard $(COMPILE.c) $<
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardall: $(PROG)
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard$(PROG): $(OBJECTS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard $(POST_PROCESS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manojROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
0bff2f28ef945280c17099c142126178a78e1e54manojinstall: all $(ROOTUSRSBINPROG)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
75960f20f88dad6bc67892c711c429946063d133stoddardcatalog:
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardcstyle:
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj ${CSTYLE} ${SRCS}
f03d292915be9977eaf74e9be7b0404aec226f84manoj
f03d292915be9977eaf74e9be7b0404aec226f84manojlint:
f03d292915be9977eaf74e9be7b0404aec226f84manoj ${LINT.c} $(LINTFLAGS) ${LINTSRCS}
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbclean:
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj ${RM} ${OBJECTS} ${DERIVED_FILES} *.o a.out core metamhd.x
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanojclobber: clean
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj ${RM} $(PROG)
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj
ff849e4163ed879288f0df15f78b6c9d278ec804fanfmetamhd_svc.c: $(SRC)/head/metamhd.x
ff849e4163ed879288f0df15f78b6c9d278ec804fanf $(CP) $(SRC)/head/metamhd.x .
ff849e4163ed879288f0df15f78b6c9d278ec804fanf $(RPCGEN) $(RPCGENFLAGS_SERVER) metamhd.x -o $@
ff849e4163ed879288f0df15f78b6c9d278ec804fanf ${RM} metamhd.x
ff849e4163ed879288f0df15f78b6c9d278ec804fanf
df4a7c143b27b489dd2d865bb3f6668c8420b3a9fanfmetamhd_xdr.c: $(SRC)/head/metamhd.x
df4a7c143b27b489dd2d865bb3f6668c8420b3a9fanf $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgsteinmhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein nawk '{sub(/uts\/common\/sys\/lvm/, "head") ; print $$0}' >$@
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein