1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the "License"). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets "[]" replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 # 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 26 include ../../Makefile.cmd 27 28 FILEMODE = 0444 29 30 BUILTXML= \ 31 console-login.xml 32 33 FSSVCS= \ 34 local-fs.xml \ 35 minimal-fs.xml \ 36 root-fs.xml \ 37 usr-fs.xml 38 39 FSMANIFESTS= $(FSSVCS:%=$(ROOTSVCSYSTEMFILESYSTEM)/%) 40 41 NETSVCS= \ 42 network-initial.xml \ 43 network-iptun.xml \ 44 network-loopback.xml \ 45 network-physical.xml \ 46 network-routing-setup.xml \ 47 network-service.xml 48 49 NETMANIFESTS= $(NETSVCS:%=$(ROOTSVCNETWORK)/%) 50 51 MAINMILESTONES= \ 52 multi-user-server.xml \ 53 multi-user.xml \ 54 name-services.xml \ 55 network.xml \ 56 single-user.xml \ 57 sysconfig.xml 58 59 MAINMANIFESTS= $(MAINMILESTONES:%=$(ROOTSVCMILESTONE)/%) 60 61 SYSDEVSVCS= \ 62 devices-local.xml \ 63 devices-audio.xml 64 65 SYSDEVMANIFESTS= $(SYSDEVSVCS:%=$(ROOTSVCSYSTEMDEVICE)/%) 66 67 SYSTEMSVCS= \ 68 boot-archive.xml \ 69 console-login.xml \ 70 identity.xml \ 71 manifest-import.xml \ 72 rmtmpfiles.xml \ 73 vtdaemon.xml 74 75 SYSTEMMANIFESTS = $(SYSTEMSVCS:%=$(ROOTSVCSYSTEM)/%) 76 77 SYSTEMSVCSVCS= \ 78 restarter.xml \ 79 global.xml 80 81 SYSTEMSVCMANIFESTS= $(SYSTEMSVCSVCS:%=$(ROOTSVCSYSTEM)/svc/%) 82 83 MISCFILES= \ 84 README.share 85 86 SYSTEMMISCFILES = $(MISCFILES:%.share=$(ROOT)/lib/svc/share/%) 87 88 # 89 # MANIFEST is used solely in the construction of the check target. 90 # 91 MANIFEST= $(FSSVCS) $(NETSVCS) $(MAINMILESTONES) $(SYSTEMSVCS) \ 92 $(SYSDEVSVCS) $(SYSTEMSVCSVCS) 93 94 SVCMETHOD=\ 95 boot-archive \ 96 console-login \ 97 devices-audio \ 98 devices-local \ 99 fs-local \ 100 fs-minimal \ 101 fs-root \ 102 fs-usr \ 103 identity-domain \ 104 identity-node \ 105 manifest-import \ 106 net-loopback \ 107 net-init \ 108 net-iptun \ 109 net-nwam \ 110 net-physical \ 111 net-routing-setup \ 112 net-svc \ 113 rmtmpfiles \ 114 vtdaemon 115 116 $(ROOTSVCMETHOD) := FILEMODE = 0555 117 118 all: $(BUILTXML) 119 120 install: $(FSMANIFESTS) $(MAINMANIFESTS) $(NETMANIFESTS) $(SYSTEMMANIFESTS) \ 121 $(ROOTSVCMETHOD) $(SYSDEVMANIFESTS) $(SYSTEMSVCMANIFESTS) \ 122 $(SYSTEMMISCFILES) 123 124 check: $(CHKMANIFEST) 125 126 console-login.xml: make-console-login-xml 127 $(SH) ./make-console-login-xml 128 129 clobber: clean 130 -$(RM) $(BUILTXML) 131 132 $(ROOTSVCMILESTONE)/%: % 133 $(INS.file) 134 135 $(ROOTSVCNETWORK)/%: % 136 $(INS.file) 137 138 $(ROOTSVCSYSTEM)/%: % 139 $(INS.file) 140 141 $(ROOTSVCSYSTEMDEVICE)/%: % 142 $(INS.file) 143 144 $(ROOTSVCSYSTEMFILESYSTEM)/%: % 145 $(INS.file) 146 147 $(ROOTSVCSYSTEM)/svc/%: % 148 $(INS.file) 149 150 $(ROOT)/lib/svc/share/%: %.share 151 $(INS.rename) 152 153 clean lint _msg: 154