Makefile revision edfa49ff6d1bd39465e21e3b28aee863e91c5e3f
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# CDDL HEADER START
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# The contents of this file are subject to the terms of the
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# Common Development and Distribution License (the "License").
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# You may not use this file except in compliance with the License.
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# or http://www.opensolaris.org/os/licensing.
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# See the License for the specific language governing permissions
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# and limitations under the License.
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# CDDL HEADER END
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder# Use is subject to license terms.
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder#
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederETCBRANDDIR= $(ROOT)/etc/brand/native
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederETCUSER= $(USERFILES:%=$(ETCBRANDDIR)/%)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder$(ETCUSER) := FILEMODE = 644
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder$(ETCUSER) := OWNER = root
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder$(ETCUSER) := GROUP = sys
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder$(ETCBRANDDIR)/%: %
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder $(INS.file)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederPROG= sw_support
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederBRAND= native
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederPROGS= attach_update image_install p2v $(PROG)
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederXMLDOCS= config.xml platform.xml smf_disable.lst pkgrm.lst
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederUSERFILES= smf_disable.conf pkgrm.conf
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederSHARED= common.ksh
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederTEMPLATES= SUNWdefault.xml SUNWblank.xml
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederCLOBBERFILES= $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder $(ETCUSER)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederall: $(PROGS)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederinclude $(SRC)/cmd/Makefile.cmd
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederinclude ../../Makefile.brand
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederCPPFLAGS += -I/usr/include/libxml2 -D_REENTRANT
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederLDLIBS += -lzonecfg -luutil
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederPOFILES= $(PROGS:%=%.po)
55c5e901b5c3466300009135585bc70bd576dcb6Christian MaederPOFILE= native_zone.po
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder$(POFILE): $(POFILES)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder $(RM) $@
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder $(BUILDPO.pofiles)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder_msg: $(MSGDOMAINPOFILE)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederlint: lint_PROG
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederinstall: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder $(ETCUSER)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederclean:
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder -$(RM) $(PROGS)
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederinclude $(SRC)/Makefile.msg.targ
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maederinclude $(SRC)/cmd/Makefile.targ
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder