Makefile revision 4be70790cfe8d92fa6249ff02f1e5f1268ae2b8e
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais# CDDL HEADER START
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais# The contents of this file are subject to the terms of the
968d6dde54d2efa62910a3cf36438325d0b69031krishna# Common Development and Distribution License (the "License").
968d6dde54d2efa62910a3cf36438325d0b69031krishna# You may not use this file except in compliance with the License.
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c28749e97052f09388969427adf7df641cdcdc22kais# or http://www.opensolaris.org/os/licensing.
c28749e97052f09388969427adf7df641cdcdc22kais# See the License for the specific language governing permissions
c28749e97052f09388969427adf7df641cdcdc22kais# and limitations under the License.
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais# When distributing Covered Code, include this CDDL HEADER in each
c28749e97052f09388969427adf7df641cdcdc22kais# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c28749e97052f09388969427adf7df641cdcdc22kais# If applicable, add the following below this CDDL HEADER, with the
c28749e97052f09388969427adf7df641cdcdc22kais# fields enclosed by brackets "[]" replaced with your own identifying
c28749e97052f09388969427adf7df641cdcdc22kais# information: Portions Copyright [yyyy] [name of copyright owner]
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais# CDDL HEADER END
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais#
51144063f3afc862c6cb3f54fd4341724f765075Krishna Yenduri# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
c28749e97052f09388969427adf7df641cdcdc22kais# Use is subject to license terms.
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais# ident "%Z%%M% %I% %E% SMI"
c28749e97052f09388969427adf7df641cdcdc22kais#
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kaisPROG = iostat
c28749e97052f09388969427adf7df641cdcdc22kaisOBJS = iostat.o
c28749e97052f09388969427adf7df641cdcdc22kaisSRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kaisinclude $(SRC)/cmd/Makefile.cmd
c28749e97052f09388969427adf7df641cdcdc22kaisinclude $(SRC)/cmd/stat/Makefile.stat
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kaisLDLIBS += -lkstat -ldevinfo -lavl
c28749e97052f09388969427adf7df641cdcdc22kaisCFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
c28749e97052f09388969427adf7df641cdcdc22kaisFILEMODE= 0555
c28749e97052f09388969427adf7df641cdcdc22kaisGROUP= bin
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kaislint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kais.KEEP_STATE:
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kaisall: $(PROG)
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kaisinstall: all $(ROOTPROG)
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kais$(PROG): $(OBJS) $(COMMON_OBJS)
c28749e97052f09388969427adf7df641cdcdc22kais $(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
c28749e97052f09388969427adf7df641cdcdc22kais $(POST_PROCESS)
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kais%.o : $(STATCOMMONDIR)/%.c
c28749e97052f09388969427adf7df641cdcdc22kais $(COMPILE.c) -o $@ $<
c28749e97052f09388969427adf7df641cdcdc22kais $(POST_PROCESS_O)
c28749e97052f09388969427adf7df641cdcdc22kais
c28749e97052f09388969427adf7df641cdcdc22kaisclean:
2bd70d4be73561631df9cb3d9eb4c65fa94fa665krishna -$(RM) $(OBJS) $(COMMON_OBJS)
c28749e97052f09388969427adf7df641cdcdc22kais
2bd70d4be73561631df9cb3d9eb4c65fa94fa665krishnalint: lint_SRCS
2bd70d4be73561631df9cb3d9eb4c65fa94fa665krishna
c28749e97052f09388969427adf7df641cdcdc22kaisinclude $(SRC)/cmd/Makefile.targ
2bd70d4be73561631df9cb3d9eb4c65fa94fa665krishna