Makefile revision 77c29b8ee88bf82021ff549b17b44e17f2ef7d7b
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# CDDL HEADER START
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# The contents of this file are subject to the terms of the
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# Common Development and Distribution License (the "License").
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# You may not use this file except in compliance with the License.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# or http://www.opensolaris.org/os/licensing.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# See the License for the specific language governing permissions
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# and limitations under the License.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# When distributing Covered Code, include this CDDL HEADER in each
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# If applicable, add the following below this CDDL HEADER, with the
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# fields enclosed by brackets "[]" replaced with your own identifying
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# information: Portions Copyright [yyyy] [name of copyright owner]
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# CDDL HEADER END
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows#
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows
749f21d359d8fbd020c974a1a5227316221bfc9cwesolowsPROG= pfexec
749f21d359d8fbd020c974a1a5227316221bfc9cwesolowsSRCS= $(PROG:%=%.c)
749f21d359d8fbd020c974a1a5227316221bfc9cwesolowsPFEXEC= pfexec
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows
749f21d359d8fbd020c974a1a5227316221bfc9cwesolowsBINSHELLS = bash csh ksh ksh93 rksh rksh93 sh tcsh zsh
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows
749f21d359d8fbd020c974a1a5227316221bfc9cwesolowsinclude ../Makefile.cmd
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows
749f21d359d8fbd020c974a1a5227316221bfc9cwesolowsFILEMODE = 0555
749f21d359d8fbd020c974a1a5227316221bfc9cwesolows
ROOTBINPFEXEC = $(PFEXEC:%=$(ROOTBIN)/%)
.KEEP_STATE:
all: $(PROG)
install: all $(ROOTBINPFEXEC)
for s in $(BINSHELLS); do \
$(RM) $(ROOTBIN)/pf$$s; \
$(LN) $(ROOTBIN)/pfexec $(ROOTBIN)/pf$$s; \
done
$(RM) $(ROOTXPG4BIN)/pfsh
$(SYMLINK) ../../bin/pfexec $(ROOTXPG4BIN)/pfsh
$(RM) $(ROOTSBIN)/pfsh
$(SYMLINK) ../usr/bin/pfexec $(ROOTSBIN)/pfsh
$(RM) $(ROOTHASBIN)/pfsh
$(LN) $(ROOTBIN)/pfexec $(ROOTHASBIN)/pfsh
clean:
lint: lint_SRCS
include ../Makefile.targ