xref: /illumos-gate/usr/src/cmd/stat/kstat/Makefile (revision da3b00f42ac14fc3d37aa0e149de7e9832c37b6d)
166448911SDavid Höppner#
266448911SDavid Höppner# CDDL HEADER START
366448911SDavid Höppner#
466448911SDavid Höppner# The contents of this file are subject to the terms of the
566448911SDavid Höppner# Common Development and Distribution License (the "License").
666448911SDavid Höppner# You may not use this file except in compliance with the License.
766448911SDavid Höppner#
866448911SDavid Höppner# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
966448911SDavid Höppner# or http://www.opensolaris.org/os/licensing.
1066448911SDavid Höppner# See the License for the specific language governing permissions
1166448911SDavid Höppner# and limitations under the License.
1266448911SDavid Höppner#
1366448911SDavid Höppner# When distributing Covered Code, include this CDDL HEADER in each
1466448911SDavid Höppner# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1566448911SDavid Höppner# If applicable, add the following below this CDDL HEADER, with the
1666448911SDavid Höppner# fields enclosed by brackets "[]" replaced with your own identifying
1766448911SDavid Höppner# information: Portions Copyright [yyyy] [name of copyright owner]
1866448911SDavid Höppner#
1966448911SDavid Höppner# CDDL HEADER END
2066448911SDavid Höppner#
2166448911SDavid Höppner#
2266448911SDavid Höppner# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2366448911SDavid Höppner# Use is subject to license terms.
2466448911SDavid Höppner#
258af765f5SPeter Tribble# Copyright 2020 Peter tribble.
26608eb926SHans Rosenfeld# Copyright 2025 Hans Rosenfeld
278af765f5SPeter Tribble#
2866448911SDavid Höppner
2966448911SDavid HöppnerPROG = kstat
3066448911SDavid HöppnerOBJS = kstat.o
3166448911SDavid HöppnerSRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
3266448911SDavid Höppner
33*da3b00f4SHans RosenfeldCLEANFILES = $(OBJS) $(COMMON_OBJS:%.o=%.c)
34*da3b00f4SHans Rosenfeld
3566448911SDavid Höppnerinclude $(SRC)/cmd/Makefile.cmd
3666448911SDavid Höppnerinclude $(SRC)/cmd/stat/Makefile.stat
3766448911SDavid Höppner
3866448911SDavid HöppnerLDLIBS += -lavl -lcmdutils -ldevinfo -lgen -lkstat
39608eb926SHans RosenfeldCFLAGS += $(CCVERBOSE)
4066448911SDavid HöppnerCERRWARN += -_gcc=-Wno-switch
4166448911SDavid HöppnerCERRWARN += -_gcc=-Wno-parentheses
42e633f2d7SRichard Lowe
4366448911SDavid HöppnerFILEMODE= 0555
4466448911SDavid Höppner
45608eb926SHans Rosenfeldinclude $(SRC)/cmd/stat/Makefile.stat.targ
46