401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore#
27859f50943f0cb932361e44b10016a1bb800779Adam Moore# CDDL HEADER START
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore#
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# The contents of this file are subject to the terms of the
aeadb9c6c72fd3591d37c4ad334287d209c309b4Adam Moore# Common Development and Distribution License (the "License").
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# You may not use this file except in compliance with the License.
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore#
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# or http://www.opensolaris.org/os/licensing.
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# See the License for the specific language governing permissions
10938185946825286d3a021aff3671dde1fb59c9Adam Moore# and limitations under the License.
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore#
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# When distributing Covered Code, include this CDDL HEADER in each
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# If applicable, add the following below this CDDL HEADER, with the
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# fields enclosed by brackets "[]" replaced with your own identifying
05a2c78cb67034fb5734ca5a004d698ea76d1f99Adam Moore# information: Portions Copyright [yyyy] [name of copyright owner]
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore#
011173392d3a1a59092095d5a24857134cb16f93Adam Moore# CDDL HEADER END
011173392d3a1a59092095d5a24857134cb16f93Adam Moore#
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore#
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore#
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam MoorePROG= zoneadm
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam MooreMANIFEST= zones.xml resource-mgmt.xml
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam MooreSVCMETHOD= svc-zones svc-resource-mgmt
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Mooreinclude ../Makefile.cmd
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam MooreROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
4e0176adfd6a21804a9f09a09cdbdaa014c32283Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam MooreOBJS= zoneadm.o zfs.o
eea24ae7b751e818f5a88c631ddfa3799e963cd4Adam MooreSRCS = $(OBJS:.o=.c)
eea24ae7b751e818f5a88c631ddfa3799e963cd4Adam MoorePOFILE=zoneadm_all.po
eea24ae7b751e818f5a88c631ddfa3799e963cd4Adam MoorePOFILES= $(OBJS:%.o=%.po)
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam MooreLDLIBS += -lzonecfg -lsocket -lgen -lpool -lzfs -luuid -lnvpair -lbrand -ldladm -lsecdb
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam MooreCERRWARN += -_gcc=-Wno-uninitialized
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore.KEEP_STATE:
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Mooreall: $(PROG)
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore$(PROG): $(OBJS)
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore $(POST_PROCESS)
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Mooreinstall: all $(ROOTUSRSBINPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moorecheck: $(PROG).c $(CHKMANIFEST)
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore $(CSTYLE) -pP $(SRCS:%=%)
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore$(POFILE): $(POFILES)
011173392d3a1a59092095d5a24857134cb16f93Adam Moore $(RM) $@
011173392d3a1a59092095d5a24857134cb16f93Adam Moore $(CAT) $(POFILES) > $@
011173392d3a1a59092095d5a24857134cb16f93Adam Moore
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Mooreclean:
8627cf57100b17d1cce69ba117e6a27b3576b869Adam Moore $(RM) $(OBJS) $(POFILES)
401d3c02d890d39b7a48d94e0a9c1830f8aade42Adam Moore
a8902278d8f5ecc3d8c4463488a361e335626116Adam Moorelint: lint_SRCS
27859f50943f0cb932361e44b10016a1bb800779Adam Moore
18f590d7221232475fc7c5353e3a88d434c7108dAdam Mooreinclude ../Makefile.targ
a8902278d8f5ecc3d8c4463488a361e335626116Adam Moore