898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer#
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer# CDDL HEADER START
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer#
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer# The contents of this file are subject to the terms of the
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer# Common Development and Distribution License, Version 1.0 only
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer# (the "License"). You may not use this file except in compliance
0d6e798a784ef0ba6b95512e4453067b2f84a91aHarald Hoyer# with the License.
0d6e798a784ef0ba6b95512e4453067b2f84a91aHarald Hoyer#
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pitt# or http://www.opensolaris.org/os/licensing.
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pitt# See the License for the specific language governing permissions
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pitt# and limitations under the License.
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pitt#
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pitt# When distributing Covered Code, include this CDDL HEADER in each
4be4833ece2856e0cacc09f8f8b2c02b320751faMartin Pitt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c50a4525aa8151b180d5a325e88c5f3812e66c36Martin Pitt# If applicable, add the following below this CDDL HEADER, with the
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# fields enclosed by brackets "[]" replaced with your own identifying
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# information: Portions Copyright [yyyy] [name of copyright owner]
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# CDDL HEADER END
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# Copyright 1996, 2000-2003 Sun Microsystems, Inc. All rights reserved.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# Use is subject to license terms.
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# Makefile for logical volume management
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierPROG= mdmonitord
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierOBJS= probedev.o \
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier md_monitord.o
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierSRCS= $(OBJS:%.o=../%.c)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierinclude ../../../Makefile.cmd
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierinclude ../../Makefile.lvm
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierLDLIBS += -lmeta
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierDEFINES += -DDEBUG
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierCFLAGS += ${DEFINES}
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier#
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierlint := LINTFLAGS += -m
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier.KEEP_STATE:
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier%.o: ../%.c
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier $(COMPILE.c) $<
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierall: $(PROG)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pitt$(PROG): $(OBJS)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier $(POST_PROCESS)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny ChevalierROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierinstall: all $(ROOTUSRSBINPROG)
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevaliercstyle:
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier ${CSTYLE} ${SRCS}
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierlint:
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier ${LINT.c} $(LINTFLAGS) ${SRCS}
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierclean:
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier ${RM} ${OBJS} *.o
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierinclude $(SRC)/cmd/Makefile.targ
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier