Makefile revision 06f33e8d08c75ccdc623b7f778570223d880eca4
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence# CDDL HEADER START
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# The contents of this file are subject to the terms of the
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# Common Development and Distribution License (the "License").
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# You may not use this file except in compliance with the License.
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# or http://www.opensolaris.org/os/licensing.
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley# See the License for the specific language governing permissions
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley# and limitations under the License.
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# When distributing Covered Code, include this CDDL HEADER in each
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# If applicable, add the following below this CDDL HEADER, with the
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# fields enclosed by brackets "[]" replaced with your own identifying
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# CDDL HEADER END
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley# Use is subject to license terms.
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#ident "%Z%%M% %I% %E% SMI"
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley#
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley
8301652f71f6cfe594361d4a70dae22ca7cd63efBob HalleyPROG = fsstat
8301652f71f6cfe594361d4a70dae22ca7cd63efBob HalleyOBJS = fsstat.o
8301652f71f6cfe594361d4a70dae22ca7cd63efBob HalleySRCS =$(OBJS:%.o=%.c)
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halleyinclude $(SRC)/cmd/Makefile.cmd
8301652f71f6cfe594361d4a70dae22ca7cd63efBob Halley
8301652f71f6cfe594361d4a70dae22ca7cd63efBob HalleyLDLIBS += -lkstat
8301652f71f6cfe594361d4a70dae22ca7cd63efBob HalleyCFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
8301652f71f6cfe594361d4a70dae22ca7cd63efBob HalleyFILEMODE= 0555
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob HalleyGROUP= bin
88f1e866aa6e4e55f7ab535f21da96930289d026Bob Halley
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halleylint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley.KEEP_STATE:
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halleyall: $(PROG)
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halleyinstall: all $(ROOTPROG)
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley$(PROG): $(OBJS)
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley $(POST_PROCESS)
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halleyclean:
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley -$(RM) $(OBJS)
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halleylint: lint_SRCS
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halleyinclude $(SRC)/cmd/Makefile.targ
2488942fbb6bcba94345ca3b1b3c7244902212f8Bob Halley