Makefile revision 22a84b8d79248a611e4ba663a268d3c4bed054ac
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# CDDL HEADER START
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# The contents of this file are subject to the terms of the
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# Common Development and Distribution License (the "License").
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# You may not use this file except in compliance with the License.
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# or http://www.opensolaris.org/os/licensing.
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# See the License for the specific language governing permissions
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# and limitations under the License.
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# When distributing Covered Code, include this CDDL HEADER in each
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# If applicable, add the following below this CDDL HEADER, with the
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# fields enclosed by brackets "[]" replaced with your own identifying
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# information: Portions Copyright [yyyy] [name of copyright owner]
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# CDDL HEADER END
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn# Use is subject to license terms.
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn#
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyninclude ../../Makefile.cmd
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynFILEMODE = 0444
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynBUILTXML= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn console-login.xml
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynFSSVCS= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn local-fs.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn minimal-fs.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn root-fs.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn usr-fs.xml
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynFSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynNETSVCS= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn network-initial.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn network-iptun.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn network-loopback.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn network-physical.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn network-routing-setup.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn network-service.xml
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynNETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynMAINMILESTONES= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn multi-user-server.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn multi-user.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn name-services.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn network.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn single-user.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn sysconfig.xml
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynMAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynSYSDEVSVCS= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn devices-local.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn devices-audio.xml
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynSYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%)
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynSYSTEMSVCS= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn boot-archive.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn console-login.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn identity.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn manifest-import.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn rmtmpfiles.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn vtdaemon.xml
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynSYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynSYSTEMSVCSVCS= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn restarter.xml \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn global.xml
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynSYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn
c4532a2036fd4a9283275b499b7a379fa9689172Serge HallynMISCFILES= \
c4532a2036fd4a9283275b499b7a379fa9689172Serge Hallyn README.share
SYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
#
# MANIFEST is used solely in the construction of the check target.
#
MANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
SVCMETHOD=\
boot-archive \
console-login \
devices-audio \
devices-local \
fs-local \
fs-minimal \
fs-root \
fs-usr \
identity-domain \
identity-node \
manifest-import \
net-loopback \
net-init \
net-iptun \
net-nwam \
net-physical \
net-routing-setup \
net-svc \
rmtmpfiles \
vtdaemon
$(ROOTSVCMETHOD) := FILEMODE = 0555
all: $(BUILTXML)
install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
$(SYSTEMMISCFILES)
check: $(CHKMANIFEST)
console-login.xml: make-console-login-xml
$(SH) ./make-console-login-xml
clobber: clean
-$(RM) $(BUILTXML)
$(ROOTSVCMILESTONE)/%: %
$(INS.file)
$(ROOTSVCNETWORK)/%: %
$(INS.file)
$(ROOTSVCSYSTEM)/%: %
$(INS.file)
$(ROOTSVCSYSTEMDEVICE)/%: %
$(INS.file)
$(ROOTSVCSYSTEMFILESYSTEM)/%: %
$(INS.file)
$(ROOTSVCSYSTEM)/svc/%: %
$(INS.file)
$(ROOT)/lib/svc/share/%: %.share
$(INS.rename)
clean lint _msg: