Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
e2e4d321999340802f77adaacd19c797d04b4b95Automatic UpdaterPROG = fsstat
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsOBJS = fsstat.o
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(SRC)/cmd/Makefile.cmd
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(SRC)/cmd/stat/Makefile.stat
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMMON_OBJS = common.o timestamp.o
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMMON_SRCS = $(COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
e2e4d321999340802f77adaacd19c797d04b4b95Automatic UpdaterLDLIBS += -lkstat
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCERRWARN += -_gcc=-Wno-parentheses
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILEMODE= 0555
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews.KEEP_STATE:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsall: $(PROG)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: all $(ROOTPROG)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(PROG): $(OBJS) $(COMMON_OBJS)
91a45a8ad51e9167e674ac5ed9b4c9eb3e7faea6Tinderbox User $(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(POST_PROCESS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User%.o : $(STATCOMMONDIR)/%.c
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(COMPILE.c) -o $@ $<
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(POST_PROCESS_O)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews -$(RM) $(OBJS) $(COMMON_OBJS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslint: lint_SRCS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(SRC)/cmd/Makefile.targ
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews