Makefile revision 7656:2621e50fdf4a
1320572Sdim# 2318663Sdim# CDDL HEADER START 3353358Sdim# 4353358Sdim# The contents of this file are subject to the terms of the 5353358Sdim# Common Development and Distribution License (the "License"). 6318663Sdim# You may not use this file except in compliance with the License. 7318663Sdim# 8318663Sdim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9318663Sdim# or http://www.opensolaris.org/os/licensing. 10320572Sdim# See the License for the specific language governing permissions 11320572Sdim# and limitations under the License. 12320572Sdim# 13320572Sdim# When distributing Covered Code, include this CDDL HEADER in each 14318663Sdim# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15327952Sdim# If applicable, add the following below this CDDL HEADER, with the 16320572Sdim# fields enclosed by brackets "[]" replaced with your own identifying 17320572Sdim# information: Portions Copyright [yyyy] [name of copyright owner] 18320572Sdim# 19320572Sdim# CDDL HEADER END 20320572Sdim# 21320572Sdim# 22320572Sdim# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23320572Sdim# Use is subject to license terms. 24318663Sdim# 25318663Sdim 26318663SdimPROG = halt 27318663SdimROOTLINKS = $(ROOTUSRSBIN)/poweroff $(ROOTUSRSBIN)/reboot 28318663SdimROOTSYMLINKS= $(ROOTETC)/halt $(ROOTETC)/reboot 29318663Sdim 30318663Sdimlint := LINTFLAGS = -u 31318663Sdim 32318663Sdiminclude ../Makefile.cmd 33318663Sdim 34318663SdimFILEMODE = 0755 35318663SdimGROUP = bin 36318663Sdim 37318663Sdim.KEEP_STATE: 38318663Sdim 39318663Sdimall: $(PROG) 40318663Sdim 41320397SdimCPPFLAGS += -I../../lib/libzpool/common 42320397SdimCPPFLAGS += -I../../uts/common/fs/zfs 43318663Sdim 44318663SdimLDLIBS += -lbsm -lscf -lzfs -lgen 45318663Sdim 46318663Sdiminstall: all $(ROOTUSRSBINPROG) $(ROOTLINKS) $(ROOTSYMLINKS) 47318663Sdim 48318663Sdim$(ROOTLINKS): $(ROOTUSRSBINPROG) 49318663Sdim $(RM) $@ 50318663Sdim $(LN) $(ROOTUSRSBINPROG) $@ 51318663Sdim 52318663Sdim$(ROOTSYMLINKS): 53318663Sdim $(RM) $@ 54318663Sdim $(SYMLINK) ../usr/sbin/$(PROG) $@ 55318663Sdim 56318663Sdimclean: 57318663Sdim 58318663Sdimlint: lint_PROG 59318663Sdim 60327952Sdiminclude ../Makefile.targ 61327952Sdim