Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
341N/A#
341N/A# CDDL HEADER START
341N/A#
341N/A# The contents of this file are subject to the terms of the
688N/A# Common Development and Distribution License, Version 1.0 only
810N/A# (the "License"). You may not use this file except in compliance
341N/A# with the License.
341N/A#
341N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
341N/A# or http://www.opensolaris.org/os/licensing.
341N/A# See the License for the specific language governing permissions
341N/A# and limitations under the License.
341N/A#
341N/A# When distributing Covered Code, include this CDDL HEADER in each
341N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
341N/A# If applicable, add the following below this CDDL HEADER, with the
341N/A# fields enclosed by brackets "[]" replaced with your own identifying
341N/A# information: Portions Copyright [yyyy] [name of copyright owner]
341N/A#
341N/A# CDDL HEADER END
341N/A#
341N/A#
341N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
341N/A# Use is subject to license terms.
341N/A#
341N/A# ident "%Z%%M% %I% %E% SMI"
341N/A#
341N/A
341N/ACOMMD = rpc.mdcommd
341N/AMDDOORS = mddoors
341N/A
341N/APROG = $(COMMD) $(MDDOORS)
810N/A
341N/ADERIVED_FILES = mdmn_commd_xdr.c
341N/A
341N/AOBJECTS = mdmn_commd_server.o \
493N/A mdmn_commd_service.o \
341N/A mddoors.o
341N/A
688N/ACOMMD_OBJECTS = mdmn_commd_server.o \
341N/A mdmn_commd_service.o \
341N/A mdmn_subr.o \
341N/A mdmn_commd_xdr.o
688N/A
688N/AMDDOORS_OBJECTS = mddoors.o
341N/A
341N/ALINTOBJECTS = mdmn_commd_server.o mdmn_commd_service.o mdmn_subr.o mddoors.o
341N/A
341N/AOBJECTS += $(DERIVED_FILES:.c=.o)
341N/A
341N/ASRCS = $(OBJECTS:%.o=../%.c)
341N/ALINTSRCS = $(LINTOBJECTS:%.o=../%.c)
341N/A
341N/AROOTLIBLVM = $(ROOTLIB)/lvm
392N/A
604N/Ainclude ../../../Makefile.cmd
646N/Ainclude ../../Makefile.lvm
688N/A
688N/ALDLIBS += -lmeta
688N/A
688N/ACFLAGS += $(DEFINES)
688N/A#
688N/A#
688N/Alint := LINTFLAGS += -m
688N/A
688N/A.KEEP_STATE:
688N/A
688N/A%.o: ../%.c
688N/A $(COMPILE.c) $<
688N/A
688N/Aall: $(PROG)
688N/A
688N/A$(COMMD): $(DERIVED_FILES) $(COMMD_OBJECTS)
688N/A $(LINK.c) -o $@ $(COMMD_OBJECTS) $(LDLIBS) -lnsl
688N/A $(POST_PROCESS)
688N/A
688N/A$(MDDOORS): ../mddoors.c
688N/A $(COMPILE.c) ../mddoors.c
688N/A $(LINK.c) -o $@ $(MDDOORS_OBJECTS) $(LDLIBS)
688N/A $(POST_PROCESS)
688N/A
688N/AINSTPROGS = $(ROOTUSRSBIN)/$(COMMD) $(ROOTLIBLVM)/$(MDDOORS)
688N/Ainstall: all $(ROOTLIBLVM) $(INSTPROGS)
688N/A
688N/Acstyle:
688N/A $(CSTYLE) $(SRCS)
688N/A
688N/Alint:
688N/A for f in $(LINTSRCS) ; do \
688N/A $(LINT.c) $(LINTFLAGS) $$f ; \
688N/A done
688N/A
688N/Aclean:
688N/A $(RM) $(OBJECTSS) $(DERIVED_FILES) *.o a.out core
688N/A
688N/Aclobber: clean
688N/A $(RM) $(PROG)
688N/A
688N/A$(DERIVED_FILES): $(SRC)/uts/common/sys/lvm/mdmn_commd.x
688N/A $(RPCGEN) -c $(SRC)/uts/common/sys/lvm/mdmn_commd.x -o $@
341N/A
341N/A$(ROOTLIBLVM)/%: %
341N/A $(INS.file)
341N/A
341N/A$(ROOTLIBLVM):
341N/A $(INS.dir)
341N/A
493N/A