6643N/A#
6643N/A# CDDL HEADER START
6643N/A#
6643N/A# The contents of this file are subject to the terms of the
6643N/A# Common Development and Distribution License, Version 1.0 only
6643N/A# (the "License"). You may not use this file except in compliance
6643N/A# with the License.
6643N/A#
6643N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6643N/A# or http://www.opensolaris.org/os/licensing.
6643N/A# See the License for the specific language governing permissions
6643N/A# and limitations under the License.
6643N/A#
6643N/A# When distributing Covered Code, include this CDDL HEADER in each
6643N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6643N/A# If applicable, add the following below this CDDL HEADER, with the
6643N/A# fields enclosed by brackets "[]" replaced with your own identifying
6643N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6643N/A#
6643N/A# CDDL HEADER END
6643N/A#
6643N/A#
6643N/A# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
6643N/A# Use is subject to license terms.
6643N/A#
6643N/A#
6643N/A# Makefile for logical volume management
6643N/A#
6643N/A
6643N/APROG= rpc.metad
6643N/A
6643N/ADERIVED_FILES = \
6643N/A metad_svc.c
6643N/A
6643N/AOBJECTS= metad_freeresult.o \
6643N/A metad_init.o \
6643N/A metad_svc_subr.o
6643N/A
6643N/ALINTOBJECTS= metad_freeresult.o \
6643N/A metad_init.o \
6643N/A metad_svc_subr.o
6643N/A
6643N/AOBJECTS += $(DERIVED_FILES:.c=.o)
6643N/A
6643N/ALINTSRCS = $(LINTOBJECTS:%.o=../%.c)
6643N/A
6643N/ASRCS = $(OBJECTS:%.o=../%.c)
6643N/A
6643N/APOFILES= $(OBJS:%.o=%.po)
6643N/A
6643N/Ainclude ../../../Makefile.cmd
6643N/Ainclude ../../Makefile.lvm
6643N/A
6643N/ALDLIBS += -lmeta -lsocket -lnsl -ldevid
6643N/A
6643N/ACFLAGS += $(DEFINES)
6643N/A#
6643N/A#
6643N/Alint := LINTFLAGS += -m
6643N/A
6643N/A%_svc.c := RPCGENFLAGS += -K -1
6643N/A
6643N/A
6643N/A.KEEP_STATE:
6643N/A
6643N/A%.o: ../%.c
6643N/A $(COMPILE.c) $<
6643N/A
6643N/Aall: $(PROG)
6643N/A
6643N/A$(PROG): $(OBJECTS)
6643N/A $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
6643N/A $(POST_PROCESS)
6643N/A
6643N/AROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
install: all $(ROOTUSRSBINPROG)
catalog:
cstyle:
${CSTYLE} ${SRCS}
lint:
${LINT.c} $(LINTFLAGS) ${LINTSRCS}
clean:
${RM} ${OBJS} ${DERIVED_FILES} *.o
clobber: clean
$(RM) $(PROG) $(CLOBBERFILES)
metad_svc.c: $(SRC)/head/metad.x
$(CP) $(SRC)/head/metad.x .
$(RPCGEN) $(RPCGENFLAGS_SERVER) -DDEBUG metad.x -o $@
${RM} metad.x