5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# CDDL HEADER START
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# The contents of this file are subject to the terms of the
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# Common Development and Distribution License (the "License").
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# You may not use this file except in compliance with the License.
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# or http://www.opensolaris.org/os/licensing.
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# See the License for the specific language governing permissions
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# and limitations under the License.
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# When distributing Covered Code, include this CDDL HEADER in each
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# If applicable, add the following below this CDDL HEADER, with the
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# fields enclosed by brackets "[]" replaced with your own identifying
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# information: Portions Copyright [yyyy] [name of copyright owner]
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# CDDL HEADER END
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb# Use is subject to license terms.
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb#
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbPROG = fsstat
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbOBJS = fsstat.o
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tcSRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbinclude $(SRC)/cmd/Makefile.cmd
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tcinclude $(SRC)/cmd/stat/Makefile.stat
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc
26fd77009b17f8c8fb32eb362584cfd635e87ad9Krishnendu Sadhukhan - Sun MicrosystemsCOMMON_OBJS = common.o timestamp.o
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tcCOMMON_SRCS = $(COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbLDLIBS += -lkstat
06f33e8d08c75ccdc623b7f778570223d880eca4rsbCFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbFILEMODE= 0555
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsblint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb.KEEP_STATE:
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsball: $(PROG)
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbinstall: all $(ROOTPROG)
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc$(PROG): $(OBJS) $(COMMON_OBJS)
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc $(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb $(POST_PROCESS)
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc%.o : $(STATCOMMONDIR)/%.c
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc $(COMPILE.c) -o $@ $<
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc $(POST_PROCESS_O)
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbclean:
00c76d6fcc0e3d5821ed5ac5165f1835f8151454tc -$(RM) $(OBJS) $(COMMON_OBJS)
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsblint: lint_SRCS
5a59a8b3d86e67dbe75588879c46e3629f40efecrsb
5a59a8b3d86e67dbe75588879c46e3629f40efecrsbinclude $(SRC)/cmd/Makefile.targ