Makefile revision 81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6a
274N/A#
274N/A# CDDL HEADER START
274N/A#
274N/A# The contents of this file are subject to the terms of the
274N/A# Common Development and Distribution License (the "License").
274N/A# You may not use this file except in compliance with the License.
274N/A#
274N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
274N/A# or http://www.opensolaris.org/os/licensing.
274N/A# See the License for the specific language governing permissions
274N/A# and limitations under the License.
274N/A#
274N/A# When distributing Covered Code, include this CDDL HEADER in each
274N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
274N/A# If applicable, add the following below this CDDL HEADER, with the
274N/A# fields enclosed by brackets "[]" replaced with your own identifying
274N/A# information: Portions Copyright [yyyy] [name of copyright owner]
274N/A#
274N/A# CDDL HEADER END
274N/A#
274N/A
274N/A#
1938N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
274N/A# Use is subject to license terms.
274N/A#
274N/A
274N/ASHELL=/usr/bin/ksh93
1244N/A
874N/APROG= alias
618N/AALIASPROG= \
1244N/A bg \
1244N/A cd \
274N/A command \
844N/A fc \
874N/A fg \
874N/A getopts \
874N/A hash \
1258N/A jobs \
274N/A kill \
274N/A read \
274N/A rev \
274N/A sleep \
274N/A sum \
274N/A test \
274N/A type \
274N/A ulimit \
1938N/A umask \
1938N/A unalias \
274N/A wait
274N/A
274N/Ainclude ../../Makefile.cmd
274N/A
274N/AROOTALIASPROG= $(ALIASPROG:%=$(ROOTBIN)/%)
274N/A
274N/AFILEMODE= 555
274N/AOWNER= root
274N/AGROUP= bin
274N/A
.KEEP_STATE:
all: $(PROG)
$(ROOTBIN)/%: $(ROOTBIN)/alias
$(INS.link)
include ../../Makefile.cmd
.KEEP_STATE:
# Set common AST build flags (e.g., needed to support the math stuff).
include ../../../Makefile.ast
OBJECTS= \
alias.o
SRCS= $(OBJECTS:%.o=%.c)
GROUP= bin
LDLIBS += -lshell -last
CPPFLAGS = \
$(DTEXTDOM) $(DTS_ERRNO) \
-I$(ROOT)/usr/include/ast
CFLAGS += \
$(ASTCFLAGS)
CFLAGS64 += \
$(ASTCFLAGS64)
ROOTCMDDIR=$(ROOT)/usr/bin
# .WAIT is needed to get the hardlinks properly done
install: all $(ROOTCMD) .WAIT $(ROOTALIASPROG)
$(PROG): $(OBJECTS)
$(RM) alias
$(LINK.c) $(OBJECTS) -o $@ $(LDLIBS)
$(POST_PROCESS)
clean clobber:
rm -f $(PROG) $(OBJECTS)
lint _msg: