10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 54271Srie# Common Development and Distribution License (the "License"). 64271Srie# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 214271Srie 220Sstevel@tonic-gate# 23*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate# Use is subject to license terms. 250Sstevel@tonic-gate# 260Sstevel@tonic-gate 270Sstevel@tonic-gatePROG= init 280Sstevel@tonic-gateROOTFS_PROG= $(PROG) 290Sstevel@tonic-gate 3089SmeemDEFAULTFILES= init.dfl 310Sstevel@tonic-gate 320Sstevel@tonic-gateinclude ../Makefile.cmd 330Sstevel@tonic-gate 346543SrieLDLIBS += -lpam -lbsm -lcontract -lscf 350Sstevel@tonic-gateLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 360Sstevel@tonic-gateCLOBBERFILES= $(STATIC) 370Sstevel@tonic-gate 380Sstevel@tonic-gate.KEEP_STATE: 390Sstevel@tonic-gate 4089Smeemall: $(ROOTFS_PROG) 410Sstevel@tonic-gate 4289Smeeminstall: all $(ROOTETCDEFAULTFILES) $(ROOTSBINPROG) 430Sstevel@tonic-gate $(RM) $(ROOTETCPROG) 440Sstevel@tonic-gate $(RM) $(ROOTUSRSBINPROG) 450Sstevel@tonic-gate $(RM) $(ROOTETC)/telinit 460Sstevel@tonic-gate $(SYMLINK) ../sbin/$(PROG) $(ROOTETCPROG) 470Sstevel@tonic-gate $(SYMLINK) ../../sbin/$(PROG) $(ROOTUSRSBINPROG) 480Sstevel@tonic-gate $(SYMLINK) ../sbin/$(PROG) $(ROOTETC)/telinit 490Sstevel@tonic-gate $(RM) $(ROOTETC)/TIMEZONE 500Sstevel@tonic-gate cd $(ROOTETC); $(SYMLINK) default/init TIMEZONE 510Sstevel@tonic-gate 520Sstevel@tonic-gatetest: 530Sstevel@tonic-gate rtest $(PROG) 540Sstevel@tonic-gate 550Sstevel@tonic-gateclean: 560Sstevel@tonic-gate 570Sstevel@tonic-gatelint: lint_PROG 580Sstevel@tonic-gate 590Sstevel@tonic-gateinclude ../Makefile.targ 60