15a59a8b3Srsb# 25a59a8b3Srsb# CDDL HEADER START 35a59a8b3Srsb# 45a59a8b3Srsb# The contents of this file are subject to the terms of the 55a59a8b3Srsb# Common Development and Distribution License (the "License"). 65a59a8b3Srsb# You may not use this file except in compliance with the License. 75a59a8b3Srsb# 85a59a8b3Srsb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95a59a8b3Srsb# or http://www.opensolaris.org/os/licensing. 105a59a8b3Srsb# See the License for the specific language governing permissions 115a59a8b3Srsb# and limitations under the License. 125a59a8b3Srsb# 135a59a8b3Srsb# When distributing Covered Code, include this CDDL HEADER in each 145a59a8b3Srsb# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155a59a8b3Srsb# If applicable, add the following below this CDDL HEADER, with the 165a59a8b3Srsb# fields enclosed by brackets "[]" replaced with your own identifying 175a59a8b3Srsb# information: Portions Copyright [yyyy] [name of copyright owner] 185a59a8b3Srsb# 195a59a8b3Srsb# CDDL HEADER END 205a59a8b3Srsb# 215a59a8b3Srsb# 2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 235a59a8b3Srsb# Use is subject to license terms. 245a59a8b3Srsb# 255a59a8b3Srsb 265a59a8b3SrsbPROG = fsstat 275a59a8b3SrsbOBJS = fsstat.o 2800c76d6fStc35445SRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS) 295a59a8b3Srsb 305a59a8b3Srsbinclude $(SRC)/cmd/Makefile.cmd 3100c76d6fStc35445include $(SRC)/cmd/stat/Makefile.stat 3200c76d6fStc35445 3326fd7700SKrishnendu Sadhukhan - Sun MicrosystemsCOMMON_OBJS = common.o timestamp.o 3400c76d6fStc35445COMMON_SRCS = $(COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c) 355a59a8b3Srsb 36*fc30d466SJason KingLDLIBS += -lkstat -lcmdutils 3706f33e8dSrsbCFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR} 387014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 395a59a8b3SrsbFILEMODE= 0555 405a59a8b3Srsb 415a59a8b3Srsblint := LINTFLAGS = -muxs -I$(STATCOMMONDIR) 425a59a8b3Srsb 435a59a8b3Srsb.KEEP_STATE: 445a59a8b3Srsb 455a59a8b3Srsball: $(PROG) 465a59a8b3Srsb 475a59a8b3Srsbinstall: all $(ROOTPROG) 485a59a8b3Srsb 4900c76d6fStc35445$(PROG): $(OBJS) $(COMMON_OBJS) 5000c76d6fStc35445 $(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS) 515a59a8b3Srsb $(POST_PROCESS) 525a59a8b3Srsb 5300c76d6fStc35445%.o : $(STATCOMMONDIR)/%.c 5400c76d6fStc35445 $(COMPILE.c) -o $@ $< 5500c76d6fStc35445 $(POST_PROCESS_O) 5600c76d6fStc35445 575a59a8b3Srsbclean: 5800c76d6fStc35445 -$(RM) $(OBJS) $(COMMON_OBJS) 595a59a8b3Srsb 605a59a8b3Srsblint: lint_SRCS 615a59a8b3Srsb 625a59a8b3Srsbinclude $(SRC)/cmd/Makefile.targ 63