Makefile revision 1caae4fbfd50fd4b25e58671b37fd9a0ee43d46a
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# CDDL HEADER START
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# The contents of this file are subject to the terms of the
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# Common Development and Distribution License (the "License").
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# You may not use this file except in compliance with the License.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# or http://www.opensolaris.org/os/licensing.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# See the License for the specific language governing permissions
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# and limitations under the License.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# When distributing Covered Code, include this CDDL HEADER in each
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# If applicable, add the following below this CDDL HEADER, with the
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# CDDL HEADER END
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
9f5e862909e44377e352d0fed9e5f582ee4e5773Knut Anders Hatlen
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye# Use is subject to license terms.
0c9a07db21ce2dc57da87ee789d12b2698d966abJorgen Austvik#
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeETCBRANDDIR= $(ROOT)/etc/brand/native
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeETCUSER= $(USERFILES:%=$(ETCBRANDDIR)/%)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye$(ETCUSER) := FILEMODE = 644
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
8f14d0c8eb7236360bd5b4f5ad479e5c01d27786Knut Anders Hatlen$(ETCBRANDDIR)/%: %
0c9a07db21ce2dc57da87ee789d12b2698d966abJorgen Austvik $(INS.file)
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina
854585887bca366ee433303cae0e99572240a568Trond NorbyePROG= sw_support
0c9a07db21ce2dc57da87ee789d12b2698d966abJorgen AustvikBRAND= native
0c9a07db21ce2dc57da87ee789d12b2698d966abJorgen AustvikPROGS= attach_update image_install p2v $(PROG)
829364a12c7569fb058d84e5dbe0feabd1936212Jens ElknerXMLDOCS= config.xml platform.xml smf_disable.lst pkgrm.lst
854585887bca366ee433303cae0e99572240a568Trond NorbyeUSERFILES= smf_disable.conf pkgrm.conf
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav KozinaSHARED= common.ksh
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond NorbyeTEMPLATES= SUNWdefault.xml SUNWblank.xml
38115c792a2142d264ca2617b11962301f079c0aTrond NorbyeCLOBBERFILES= $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye $(ETCUSER)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
49c1125dd084e20a3e636c09f3f35460cbd250e8Trond Norbyeall: $(PROGS)
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye
e372bd6df6fcf2bc7f7c925fe702a9e62fd7c466Trond Norbyeinclude $(SRC)/cmd/Makefile.cmd
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbyeinclude ../../Makefile.brand
8a9ba65ef751678506cd771169b7e3416b7b1b02Trond Norbye
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens ElknerCPPFLAGS += -I/usr/include/libxml2 -D_REENTRANT
ff5eba819da0cf7964d884630fb13262ef12c505Trond NorbyeLDLIBS += -lzonecfg -luutil
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens ElknerPOFILES= $(PROGS:%=%.po) common.po
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens ElknerPOFILE= native_zone.po
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye
9921c753a20f8deb6d2ee24c0c1885ea85c2d831Knut Anders Hatlen$(POFILE): $(POFILES)
9921c753a20f8deb6d2ee24c0c1885ea85c2d831Knut Anders Hatlen $(RM) $@
9921c753a20f8deb6d2ee24c0c1885ea85c2d831Knut Anders Hatlen $(CAT) $(POFILES) > $@
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbyelint: lint_PROG
3bd91b9bbb9915421b772c357165fbc6fdeaf286Trond Norbye
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbyeinstall: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye $(ETCUSER)
248a156145262c8f2ad511488c83d253c0bbdb77Karthik Rajagopalan
248a156145262c8f2ad511488c83d253c0bbdb77Karthik Rajagopalanclean:
248a156145262c8f2ad511488c83d253c0bbdb77Karthik Rajagopalan -$(RM) $(PROGS) $(POFILES) $(POFILE)
248a156145262c8f2ad511488c83d253c0bbdb77Karthik Rajagopalan
248a156145262c8f2ad511488c83d253c0bbdb77Karthik Rajagopalaninclude $(SRC)/cmd/Makefile.targ
248a156145262c8f2ad511488c83d253c0bbdb77Karthik Rajagopalan