xref: /illumos-gate/usr/src/cmd/stat/fsstat/Makefile (revision ea429a71)
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#
25*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
265a59a8b3Srsb
275a59a8b3SrsbPROG = fsstat
285a59a8b3SrsbOBJS = fsstat.o
2900c76d6fStcSRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
305a59a8b3Srsb
315a59a8b3Srsbinclude $(SRC)/cmd/Makefile.cmd
3200c76d6fStcinclude $(SRC)/cmd/stat/Makefile.stat
3300c76d6fStc
3426fd7700SKrishnendu Sadhukhan - Sun MicrosystemsCOMMON_OBJS = common.o timestamp.o
3500c76d6fStcCOMMON_SRCS = $(COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
365a59a8b3Srsb
370a055120SJason KingLDLIBS += -lkstat -lcmdutils
3806f33e8dSrsbCFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
397014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
405a59a8b3SrsbFILEMODE= 0555
415a59a8b3Srsb
42*5661bb76SJohn LevonSMOFF += signed
43*5661bb76SJohn Levon
445a59a8b3Srsb.KEEP_STATE:
455a59a8b3Srsb
465a59a8b3Srsball: $(PROG)
475a59a8b3Srsb
485a59a8b3Srsbinstall: all $(ROOTPROG)
495a59a8b3Srsb
5000c76d6fStc$(PROG): $(OBJS) $(COMMON_OBJS)
5100c76d6fStc	$(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
525a59a8b3Srsb	$(POST_PROCESS)
5300c76d6fStc
5400c76d6fStc%.o : $(STATCOMMONDIR)/%.c
5500c76d6fStc	$(COMPILE.c) -o $@ $<
5600c76d6fStc	$(POST_PROCESS_O)
5700c76d6fStc
585a59a8b3Srsbclean:
5900c76d6fStc	-$(RM) $(OBJS) $(COMMON_OBJS)
605a59a8b3Srsb
615a59a8b3Srsbinclude $(SRC)/cmd/Makefile.targ
62