xref: /illumos-gate/usr/src/cmd/stat/kstat/Makefile (revision ea429a71818e2432d0d0a924065a009b1e5abdd1)
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#
25*8af765f5SPeter Tribble# Copyright 2020 Peter tribble.
26*8af765f5SPeter Tribble#
2766448911SDavid Höppner
2866448911SDavid HöppnerPROG = kstat
2966448911SDavid HöppnerOBJS = kstat.o
3066448911SDavid HöppnerSRCS =$(OBJS:%.o=%.c) $(COMMON_SRCS)
3166448911SDavid Höppner
3266448911SDavid Höppnerinclude $(SRC)/cmd/Makefile.cmd
3366448911SDavid Höppnerinclude $(SRC)/cmd/stat/Makefile.stat
3466448911SDavid Höppner
3566448911SDavid HöppnerLDLIBS += -lavl -lcmdutils -ldevinfo -lgen -lkstat
3666448911SDavid HöppnerCFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
3766448911SDavid HöppnerCERRWARN += -_gcc=-Wno-switch
3866448911SDavid HöppnerCERRWARN += -_gcc=-Wno-parentheses
39e633f2d7SRichard Lowe
40e633f2d7SRichard LoweCPPFLAGS_sparc += -I$(SRC)/uts/sfmmu
41e633f2d7SRichard LoweCPPFLAGS += $(CPPFLAGS_$(MACH))
42e633f2d7SRichard Lowe
4366448911SDavid HöppnerFILEMODE= 0555
4466448911SDavid Höppner
4566448911SDavid Höppner.KEEP_STATE:
4666448911SDavid Höppner
4766448911SDavid Höppnerall: $(PROG)
4866448911SDavid Höppner
4966448911SDavid Höppnerinstall: all $(ROOTPROG)
5066448911SDavid Höppner
5166448911SDavid Höppner$(PROG): $(OBJS) $(COMMON_OBJS)
5266448911SDavid Höppner	$(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
5366448911SDavid Höppner	$(POST_PROCESS)
5466448911SDavid Höppner
5566448911SDavid Höppner%.o : $(STATCOMMONDIR)/%.c
5666448911SDavid Höppner	$(COMPILE.c) -o $@ $<
5766448911SDavid Höppner	$(POST_PROCESS_O)
5866448911SDavid Höppner
5966448911SDavid Höppnerclean:
6066448911SDavid Höppner	-$(RM) $(OBJS) $(COMMON_OBJS)
6166448911SDavid Höppner
6266448911SDavid Höppnerinclude $(SRC)/cmd/Makefile.targ
63