Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
705N/A#
705N/A# CDDL HEADER START
1339N/A#
705N/A# The contents of this file are subject to the terms of the
705N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
705N/A# Use is subject to license terms.
705N/A#
705N/A
705N/APROG = fsstat
705N/AOBJS = fsstat.o
705N/ASRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
1351N/A
705N/Ainclude $(SRC)/cmd/Makefile.cmd
911N/Ainclude $(SRC)/cmd/stat/Makefile.stat
1351N/A
1351N/ACOMMON_OBJS = common.o timestamp.o
911N/ACOMMON_SRCS = $(COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
705N/A
705N/ALDLIBS += -lkstat
705N/ACFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
1339N/ACERRWARN += -_gcc=-Wno-parentheses
1339N/AFILEMODE= 0555
1339N/A
705N/Alint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
705N/A
.KEEP_STATE:
all: $(PROG)
install: all $(ROOTPROG)
$(PROG): $(OBJS) $(COMMON_OBJS)
$(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
$(POST_PROCESS)
%.o : $(STATCOMMONDIR)/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
clean:
-$(RM) $(OBJS) $(COMMON_OBJS)
lint: lint_SRCS
include $(SRC)/cmd/Makefile.targ