efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# CDDL HEADER START
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# The contents of this file are subject to the terms of the
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# Common Development and Distribution License (the "License").
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# You may not use this file except in compliance with the License.
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# or http://www.opensolaris.org/os/licensing.
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# See the License for the specific language governing permissions
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# and limitations under the License.
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# When distributing Covered Code, include this CDDL HEADER in each
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# If applicable, add the following below this CDDL HEADER, with the
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# fields enclosed by brackets "[]" replaced with your own identifying
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# CDDL HEADER END
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence#
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve LawrenceMANIFEST = zonestat.xml
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve LawrenceSVCMETHOD = svc-zonestat
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve LawrencePROG = zonestatd
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrenceinclude ../../Makefile.cmd
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve LawrenceROOTCMDDIR = $(ROOTLIB)/zones
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve LawrenceROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve LawrenceSRCS = zonestatd.c
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
494f7e12a62129ef191a15f9dfde6b7abe3bf510Keith M WesolowskiCPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/libxml2
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweLDLIBS += -lkstat -lpool -lexacct -lscf \
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe -lcontract -lcmdutils -lumem
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweLINTFLAGS += -u
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweOBJS = $(SRCS:%.c=%.o)
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence.KEEP_STATE:
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence.PARALLEL:
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrenceall: $(PROG)
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrenceinstall: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrencecheck: $(CHKMANIFEST)
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrenceclean:
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence $(RM) $(OBJS)
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrencelint: lint_PROG
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrence
efd4c9b63ad77503c101fc6c2ed8ba96c9d52964Steve Lawrenceinclude ../../Makefile.targ