xref: /titanic_41/usr/src/cmd/svc/milestone/Makefile (revision 1f6eb0216cb17ca5fdff9563329f1dda47c8b801)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5a192e900Samaguire# Common Development and Distribution License (the "License").
6a192e900Samaguire# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22aecfc01dSrui zang - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateOWNER = root
297c478bd9Sstevel@tonic-gateGROUP = sys
307c478bd9Sstevel@tonic-gateFILEMODE = 0444
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateBUILTXML= \
337c478bd9Sstevel@tonic-gate	console-login.xml
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gateFSSVCS= \
367c478bd9Sstevel@tonic-gate	local-fs.xml \
377c478bd9Sstevel@tonic-gate	minimal-fs.xml \
387c478bd9Sstevel@tonic-gate	root-fs.xml \
397c478bd9Sstevel@tonic-gate	usr-fs.xml
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateFSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateNETSVCS= \
447c478bd9Sstevel@tonic-gate	network-initial.xml \
457c478bd9Sstevel@tonic-gate	network-loopback.xml \
467c478bd9Sstevel@tonic-gate	network-physical.xml \
47a192e900Samaguire	network-routing-setup.xml \
487c478bd9Sstevel@tonic-gate	network-service.xml
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateNETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateMAINMILESTONES= \
537c478bd9Sstevel@tonic-gate	multi-user-server.xml \
547c478bd9Sstevel@tonic-gate	multi-user.xml \
557c478bd9Sstevel@tonic-gate	name-services.xml \
567c478bd9Sstevel@tonic-gate	network.xml \
577c478bd9Sstevel@tonic-gate	single-user.xml \
587c478bd9Sstevel@tonic-gate	sysconfig.xml
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gateMAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateSYSDEVSVCS= \
637c478bd9Sstevel@tonic-gate	devices-local.xml
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateSYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateSYSTEMSVCS= \
682269adc8Sszhou	boot-archive.xml \
697c478bd9Sstevel@tonic-gate	console-login.xml \
707c478bd9Sstevel@tonic-gate	identity.xml \
717c478bd9Sstevel@tonic-gate	manifest-import.xml \
72aecfc01dSrui zang - Sun Microsystems - Beijing China	rmtmpfiles.xml	\
73aecfc01dSrui zang - Sun Microsystems - Beijing China	vtdaemon.xml
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateSYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gateSYSTEMSVCSVCS= \
78*1f6eb021SLiane Praza	restarter.xml \
79*1f6eb021SLiane Praza	global.xml
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateSYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gateMISCFILES= \
847c478bd9Sstevel@tonic-gate	README.share
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateSYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate#
897c478bd9Sstevel@tonic-gate# MANIFEST is used solely in the construction of the check target.
907c478bd9Sstevel@tonic-gate#
917c478bd9Sstevel@tonic-gateMANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
927c478bd9Sstevel@tonic-gate	$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gateSVCMETHOD=\
957c478bd9Sstevel@tonic-gate	boot-archive \
967c478bd9Sstevel@tonic-gate	console-login \
977c478bd9Sstevel@tonic-gate	devices-local \
987c478bd9Sstevel@tonic-gate	fs-local \
997c478bd9Sstevel@tonic-gate	fs-minimal \
1007c478bd9Sstevel@tonic-gate	fs-root \
1017c478bd9Sstevel@tonic-gate	fs-usr \
1027c478bd9Sstevel@tonic-gate	identity-domain \
1037c478bd9Sstevel@tonic-gate	identity-node \
1047c478bd9Sstevel@tonic-gate	manifest-import \
1057c478bd9Sstevel@tonic-gate	net-loopback \
1067c478bd9Sstevel@tonic-gate	net-init \
107d71dbb73Sjbeck	net-nwam \
1087c478bd9Sstevel@tonic-gate	net-physical \
109a192e900Samaguire	net-routing-setup \
1107c478bd9Sstevel@tonic-gate	net-svc \
111aecfc01dSrui zang - Sun Microsystems - Beijing China	rmtmpfiles \
112aecfc01dSrui zang - Sun Microsystems - Beijing China	vtdaemon
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate$(ROOTSVCMETHOD) := FILEMODE = 0555
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gateall: $(BUILTXML)
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gateinstall: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
1197c478bd9Sstevel@tonic-gate	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
1207c478bd9Sstevel@tonic-gate	$(SYSTEMMISCFILES)
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gatecheck:	$(CHKMANIFEST)
1237c478bd9Sstevel@tonic-gate
1247c478bd9Sstevel@tonic-gateconsole-login.xml: make-console-login-xml
1257c478bd9Sstevel@tonic-gate	$(SH) ./make-console-login-xml
1267c478bd9Sstevel@tonic-gate
1277c478bd9Sstevel@tonic-gateclobber: clean
1287c478bd9Sstevel@tonic-gate	-$(RM) $(BUILTXML)
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gate$(ROOTSVCMILESTONE)/%: %
1317c478bd9Sstevel@tonic-gate	$(INS.file)
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORK)/%: %
1347c478bd9Sstevel@tonic-gate	$(INS.file)
1357c478bd9Sstevel@tonic-gate
1367c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEM)/%: %
1377c478bd9Sstevel@tonic-gate	$(INS.file)
1387c478bd9Sstevel@tonic-gate
1397c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMDEVICE)/%: %
1407c478bd9Sstevel@tonic-gate	$(INS.file)
1417c478bd9Sstevel@tonic-gate
1427c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMFILESYSTEM)/%: %
1437c478bd9Sstevel@tonic-gate	$(INS.file)
1447c478bd9Sstevel@tonic-gate
1457c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEM)/svc/%: %
1467c478bd9Sstevel@tonic-gate	$(INS.file)
1477c478bd9Sstevel@tonic-gate
1487c478bd9Sstevel@tonic-gate$(ROOT)/lib/svc/share/%: %.share
1497c478bd9Sstevel@tonic-gate	$(INS.rename)
1507c478bd9Sstevel@tonic-gate
1517c478bd9Sstevel@tonic-gateclean lint _msg:
152