Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson#
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User# CDDL HEADER START
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson# The contents of this file are subject to the terms of the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Common Development and Distribution License, Version 1.0 only
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson# (the "License"). You may not use this file except in compliance
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson# with the License.
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright 1996, 2000-2003 Sun Microsystems, Inc. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Use is subject to license terms.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson# ident "%Z%%M% %I% %E% SMI"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Makefile for logical volume management
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinPROG= mdmonitord
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinOBJS= probedev.o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein md_monitord.o
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSRCS= $(OBJS:%.o=../%.c)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../../Makefile.cmd
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../Makefile.lvm
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLDLIBS += -lmeta
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews
938440694b33cd752e9e4b71a526368b4811c177Tinderbox UserDEFINES += -DDEBUG
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCFLAGS += ${DEFINES}
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlint := LINTFLAGS += -m
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein.KEEP_STATE:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein%.o: ../%.c
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(COMPILE.c) $<
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafssonall: $(PROG)
4b01d45a49f1c2cc4bddc9a1b4c78232867de134Andreas Gustafsson
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(PROG): $(OBJS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(POST_PROCESS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall: all $(ROOTUSRSBINPROG)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeincstyle:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ${CSTYLE} ${SRCS}
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
821350367e2c7313c02eb275e8e05d5193b47cfdJeremy C. Reedlint:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ${LINT.c} $(LINTFLAGS) ${SRCS}
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ${RM} ${OBJS} *.o a.out core
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude $(SRC)/cmd/Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein