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 5*24fe0b3bSjmcp# Common Development and Distribution License (the "License"). 6*24fe0b3bSjmcp# 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# 22*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateSHFILES= dfstab vfstab 277c478bd9Sstevel@tonic-gateCPFILES= rcS rc0 rc1 rc2 rc3 mountall shutdown swapadd umountall 287c478bd9Sstevel@tonic-gateALL= $(SHFILES) $(CPFILES) 297c478bd9Sstevel@tonic-gateTXTS= rcS.d/mk.rcS.d.sh rc0.d/mk.rc0.d.sh \ 307c478bd9Sstevel@tonic-gate rc1.d/mk.rc1.d.sh rc2.d/mk.rc2.d.sh rc3.d/mk.rc3.d.sh 317c478bd9Sstevel@tonic-gateCLOBBERFILES= $(ALL) 327c478bd9Sstevel@tonic-gateSUBDIRS= rcS.d rc0.d rc1.d rc2.d rc3.d 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateETCINITD= $(ROOTETC)/init.d 377c478bd9Sstevel@tonic-gateETCDFSD= $(ROOTETC)/dfs 387c478bd9Sstevel@tonic-gateDIRS= $(ETCINITD) $(ETCDFSD) $(ROOTETC)/security 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateSBINF= rcS mountall rc0 rc1 rc2 rc3 swapadd umountall 417c478bd9Sstevel@tonic-gateSBINL= rc5 rc6 427c478bd9Sstevel@tonic-gateUSRSBINF= mountall shutdown umountall 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gatesparc_ETCTABS= 457c478bd9Sstevel@tonic-gatei386_ETCTABS= bootrc 467c478bd9Sstevel@tonic-gateETCTABS= vfstab inittab nscd.conf security/crypt.conf $($(MACH)_ETCTABS) 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateDFSTAB= dfstab 497c478bd9Sstevel@tonic-gateSBINETC= rcS mountall rc0 rc1 rc2 rc3 rc5 rc6 swapadd umountall 507c478bd9Sstevel@tonic-gateUSRSBINETC= shutdown 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateFILEMODE= 0744 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateROOTSBINF= $(SBINF:%=$(ROOTSBIN)/%) 557c478bd9Sstevel@tonic-gateROOTSBINL= $(SBINL:%=$(ROOTSBIN)/%) 567c478bd9Sstevel@tonic-gateROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%) 577c478bd9Sstevel@tonic-gateROOTETCTABS= $(ETCTABS:%=$(ROOTETC)/%) 587c478bd9Sstevel@tonic-gateROOTDFSTAB= $(DFSTAB:%=$(ETCDFSD)/%) 597c478bd9Sstevel@tonic-gateSYMSBINF= $(SBINETC:%=$(ROOTETC)/%) 607c478bd9Sstevel@tonic-gateSYMUSRSBINF= $(USRSBINETC:%=$(ROOTETC)/%) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate$(ROOTETC)/inittab := FILEMODE = 0644 637c478bd9Sstevel@tonic-gate$(ROOTETC)/vfstab := FILEMODE = 0644 647c478bd9Sstevel@tonic-gate$(ROOTETC)/nscd.conf := FILEMODE = 0644 657c478bd9Sstevel@tonic-gate$(ROOTETC)/security/crypt.conf := FILEMODE = 0644 667c478bd9Sstevel@tonic-gate$(ROOTETC)/bootrc := FILEMODE = 0755 677c478bd9Sstevel@tonic-gate$(ROOTDFSTAB) := FILEMODE = 0644 687c478bd9Sstevel@tonic-gate$(ROOTSBIN)/mountall := FILEMODE = 0555 697c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN)/mountall := FILEMODE = 0555 707c478bd9Sstevel@tonic-gate$(ROOTSBIN)/umountall := FILEMODE = 0555 717c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN)/umountall := FILEMODE = 0555 727c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN)/shutdown := FILEMODE = 0755 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate$(ETCDFSD)/% : % 757c478bd9Sstevel@tonic-gate $(INS.file) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate.KEEP_STATE: 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateall: $(ALL) all_init.d $(TXTS) 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate$(SYMSBINF): 827c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@ 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate$(SYMUSRSBINF): 857c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../usr/sbin/$(@F) $@ 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate$(ROOTSBINL): $(ROOTSBIN)/rc0 887c478bd9Sstevel@tonic-gate $(RM) $@; $(LN) $(ROOTSBIN)/rc0 $@ 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gateall_init.d: FRC 917c478bd9Sstevel@tonic-gate @cd init.d; pwd; $(MAKE) $(MFLAGS) all 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gateins_init.d: FRC 947c478bd9Sstevel@tonic-gate @cd init.d; pwd; $(MAKE) $(MFLAGS) install 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gate$(SHFILES): 977c478bd9Sstevel@tonic-gate sh $@.sh $(ROOT) 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gateinstall: $(ALL) ins_all ins_init.d $(SUBDIRS) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gateins_all : $(ROOTSBINF) $(ROOTSBINL) $(ROOTUSRSBINF) $(ROOTETCTABS) \ 1027c478bd9Sstevel@tonic-gate $(ROOTDFSTAB) $(SYMSBINF) $(SYMUSRSBINF) 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gate# Don't re-install directories already installed by Targetdirs 1057c478bd9Sstevel@tonic-gate#$(DIRS): 1067c478bd9Sstevel@tonic-gate# $(INS.dir) 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gate$(SUBDIRS): FRC 109*24fe0b3bSjmcp @cd $@; pwd; ROOT=$(ROOT) sh mk.$@.sh 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gateFRC: 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gateclean lint: 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 116