Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
235N/A#
235N/A# CDDL HEADER START
822N/A#
822N/A# The contents of this file are subject to the terms of the
822N/A# Common Development and Distribution License, Version 1.0 only
235N/A# (the "License"). You may not use this file except in compliance
1252N/A# with the License.
235N/A#
235N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 1996, 2001-2003 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
919N/A#
235N/A# Makefile for logical volume management
235N/A#
235N/A
822N/APROG= rpc.metamhd
235N/A
970N/ARPCMOD = metamhd
970N/A
970N/ADERIVED_FILES = \
970N/A $(RPCMOD)_svc.c \
970N/A $(RPCMOD)_xdr.c \
970N/A mhdx_xdr.c
970N/A
1003N/AOBJECTS= \
970N/A mhd_drive.o \
235N/A mhd_error.o \
1252N/A mhd_failfast.o \
235N/A mhd_freeresult.o \
911N/A mhd_init.o \
1252N/A mhd_mem.o \
1252N/A mhd_metamhd.o \
911N/A mhd_set.o \
235N/A mhd_synch.o \
493N/A mhd_time.o
493N/A
235N/ALINTOBJECTS= \
235N/A mhd_drive.o \
235N/A mhd_error.o \
235N/A mhd_failfast.o \
822N/A mhd_freeresult.o \
235N/A mhd_init.o \
1124N/A mhd_mem.o \
1124N/A mhd_metamhd.o \
1124N/A mhd_set.o \
235N/A mhd_synch.o \
1252N/A mhd_time.o
235N/A
235N/AOBJECTS += $(DERIVED_FILES:.c=.o)
235N/A
235N/ASRCS = $(OBJECTS:%.o=../%.c)
1124N/ALINTSRCS = $(LINTOBJECTS:%.o=../%.c)
1265N/A
1124N/Ainclude ../../../Makefile.cmd
1124N/Ainclude ../../Makefile.lvm
1124N/A
1124N/A
822N/AMDLIBS =
822N/ALDLIBS += -ladm -lsocket -lnsl
1272N/A
1272N/APOFILES= $(OBJECTS:%.o=%.po)
235N/A
1124N/A
1124N/A$(RPCMOD)_svc.c := RPCGENFLAGS += -A -K -1
1124N/A
970N/ADEFINES += -D_REENTRANT
970N/ACFLAGS += $(DEFINES)
970N/A
970N/A
970N/A#
970N/A#
970N/Alint := LINTFLAGS += -m
947N/A
235N/A.KEEP_STATE:
247N/A
947N/A%.o: ../%.c
235N/A $(COMPILE.c) $<
247N/A
947N/Aall: $(PROG)
947N/A
970N/A$(PROG): $(OBJECTS)
970N/A $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
947N/A $(POST_PROCESS)
947N/A
947N/A
947N/AROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
947N/Ainstall: all $(ROOTUSRSBINPROG)
947N/A
235N/Acatalog:
241N/A
493N/Acstyle:
493N/A ${CSTYLE} ${SRCS}
235N/A
1270N/Alint:
1270N/A ${LINT.c} $(LINTFLAGS) ${LINTSRCS}
1270N/A
1270N/Aclean:
493N/A ${RM} ${OBJECTS} ${DERIVED_FILES} *.o
493N/A
1124N/Aclobber: clean
963N/A $(RM) $(PROG) $(CLOBBERFILES)
1124N/A
1124N/Ametamhd_svc.c: $(SRC)/head/metamhd.x
1097N/A $(CP) $(SRC)/head/metamhd.x .
493N/A $(RPCGEN) $(RPCGENFLAGS_SERVER) metamhd.x -o $@
1097N/A ${RM} metamhd.x
1097N/A
493N/Ametamhd_xdr.c: $(SRC)/head/metamhd.x
235N/A $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
1124N/A
1124N/Amhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
1124N/A $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
1124N/A nawk '{sub(/uts\/common\/sys\/lvm/, "head") ; print $$0}' >$@
1124N/A