xref: /illumos-gate/usr/src/cmd/svc/milestone/Makefile (revision d2a70789)
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#
229b5bf10aSMark Haywood# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateFILEMODE = 0444
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateBUILTXML= \
307c478bd9Sstevel@tonic-gate	console-login.xml
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateFSSVCS= \
337c478bd9Sstevel@tonic-gate	local-fs.xml \
347c478bd9Sstevel@tonic-gate	minimal-fs.xml \
357c478bd9Sstevel@tonic-gate	root-fs.xml \
367c478bd9Sstevel@tonic-gate	usr-fs.xml
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateFSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%)
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gateNETSVCS= \
417c478bd9Sstevel@tonic-gate	network-initial.xml \
429b5bf10aSMark Haywood	network-install.xml \
432b24ab6bSSebastien Roy	network-iptun.xml \
446ba597c5SAnurag S. Maskey	network-ipqos.xml \
456ba597c5SAnurag S. Maskey	network-location.xml \
467c478bd9Sstevel@tonic-gate	network-loopback.xml \
476ba597c5SAnurag S. Maskey	network-netcfg.xml \
486ba597c5SAnurag S. Maskey	network-netmask.xml \
496ba597c5SAnurag S. Maskey	network-netcfg.xml \
507c478bd9Sstevel@tonic-gate	network-physical.xml \
51a192e900Samaguire	network-routing-setup.xml \
527c478bd9Sstevel@tonic-gate	network-service.xml
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateNETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%)
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateMAINMILESTONES= \
577c478bd9Sstevel@tonic-gate	multi-user-server.xml \
587c478bd9Sstevel@tonic-gate	multi-user.xml \
597c478bd9Sstevel@tonic-gate	name-services.xml \
607c478bd9Sstevel@tonic-gate	network.xml \
617c478bd9Sstevel@tonic-gate	single-user.xml \
627c478bd9Sstevel@tonic-gate	sysconfig.xml
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateMAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateSYSDEVSVCS= \
6788447a05SGarrett D'Amore	devices-local.xml \
6888447a05SGarrett D'Amore	devices-audio.xml
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateSYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateSYSTEMSVCS= \
732269adc8Sszhou	boot-archive.xml \
747c478bd9Sstevel@tonic-gate	console-login.xml \
759444c26fSTom Whitten	early-manifest-import.xml \
767c478bd9Sstevel@tonic-gate	identity.xml \
777c478bd9Sstevel@tonic-gate	manifest-import.xml \
78*d2a70789SRichard Lowe	process-security.xml \
79aecfc01dSrui zang - Sun Microsystems - Beijing China	rmtmpfiles.xml	\
80aecfc01dSrui zang - Sun Microsystems - Beijing China	vtdaemon.xml
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gateSYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gateSYSTEMSVCSVCS= \
851f6eb021SLiane Praza	restarter.xml \
861f6eb021SLiane Praza	global.xml
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gateSYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gateMISCFILES= \
917c478bd9Sstevel@tonic-gate	README.share
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gateSYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate#
967c478bd9Sstevel@tonic-gate# MANIFEST is used solely in the construction of the check target.
977c478bd9Sstevel@tonic-gate#
987c478bd9Sstevel@tonic-gateMANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \
997c478bd9Sstevel@tonic-gate	$(SYSDEVSVCS) $(SYSTEMSVCSVCS)
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gateSVCMETHOD=\
1027c478bd9Sstevel@tonic-gate	boot-archive \
1037c478bd9Sstevel@tonic-gate	console-login \
10488447a05SGarrett D'Amore	devices-audio \
1057c478bd9Sstevel@tonic-gate	devices-local \
1067c478bd9Sstevel@tonic-gate	fs-local \
1077c478bd9Sstevel@tonic-gate	fs-minimal \
1087c478bd9Sstevel@tonic-gate	fs-root \
1097c478bd9Sstevel@tonic-gate	fs-usr \
1107c478bd9Sstevel@tonic-gate	identity-domain \
1117c478bd9Sstevel@tonic-gate	identity-node \
1127c478bd9Sstevel@tonic-gate	manifest-import \
1136ba597c5SAnurag S. Maskey	net-loc \
1147c478bd9Sstevel@tonic-gate	net-loopback \
1157c478bd9Sstevel@tonic-gate	net-init \
1169b5bf10aSMark Haywood	net-install \
1172b24ab6bSSebastien Roy	net-iptun \
1186ba597c5SAnurag S. Maskey	net-ipqos \
1196ba597c5SAnurag S. Maskey	net-netmask \
120d71dbb73Sjbeck	net-nwam \
1217c478bd9Sstevel@tonic-gate	net-physical \
122a192e900Samaguire	net-routing-setup \
1237c478bd9Sstevel@tonic-gate	net-svc \
124aecfc01dSrui zang - Sun Microsystems - Beijing China	rmtmpfiles \
125aecfc01dSrui zang - Sun Microsystems - Beijing China	vtdaemon
1267c478bd9Sstevel@tonic-gate
1277c478bd9Sstevel@tonic-gate$(ROOTSVCMETHOD) := FILEMODE = 0555
1287c478bd9Sstevel@tonic-gate
1297c478bd9Sstevel@tonic-gateall: $(BUILTXML)
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gateinstall: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \
1327c478bd9Sstevel@tonic-gate	$(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \
1337c478bd9Sstevel@tonic-gate	$(SYSTEMMISCFILES)
1347c478bd9Sstevel@tonic-gate
1357c478bd9Sstevel@tonic-gatecheck:	$(CHKMANIFEST)
1367c478bd9Sstevel@tonic-gate
1377c478bd9Sstevel@tonic-gateconsole-login.xml: make-console-login-xml
1387c478bd9Sstevel@tonic-gate	$(SH) ./make-console-login-xml
1397c478bd9Sstevel@tonic-gate
1407c478bd9Sstevel@tonic-gateclobber: clean
1417c478bd9Sstevel@tonic-gate	-$(RM) $(BUILTXML)
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gate$(ROOTSVCMILESTONE)/%: %
1447c478bd9Sstevel@tonic-gate	$(INS.file)
1457c478bd9Sstevel@tonic-gate
1467c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORK)/%: %
1477c478bd9Sstevel@tonic-gate	$(INS.file)
1487c478bd9Sstevel@tonic-gate
1497c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEM)/%: %
1507c478bd9Sstevel@tonic-gate	$(INS.file)
1517c478bd9Sstevel@tonic-gate
1527c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMDEVICE)/%: %
1537c478bd9Sstevel@tonic-gate	$(INS.file)
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMFILESYSTEM)/%: %
1567c478bd9Sstevel@tonic-gate	$(INS.file)
1577c478bd9Sstevel@tonic-gate
1587c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEM)/svc/%: %
1597c478bd9Sstevel@tonic-gate	$(INS.file)
1607c478bd9Sstevel@tonic-gate
1617c478bd9Sstevel@tonic-gate$(ROOT)/lib/svc/share/%: %.share
1627c478bd9Sstevel@tonic-gate	$(INS.rename)
1637c478bd9Sstevel@tonic-gate
1647c478bd9Sstevel@tonic-gateclean lint _msg:
165