Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
236N/A#
236N/A# CDDL HEADER START
236N/A#
236N/A# The contents of this file are subject to the terms of the
236N/A# Common Development and Distribution License (the "License").
236N/A# You may not use this file except in compliance with the License.
236N/A#
236N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
236N/A# or http://www.opensolaris.org/os/licensing.
236N/A# See the License for the specific language governing permissions
236N/A# and limitations under the License.
236N/A#
236N/A# When distributing Covered Code, include this CDDL HEADER in each
236N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
236N/A# If applicable, add the following below this CDDL HEADER, with the
236N/A# fields enclosed by brackets "[]" replaced with your own identifying
236N/A# information: Portions Copyright [yyyy] [name of copyright owner]
236N/A#
236N/A# CDDL HEADER END
236N/A#
236N/A
236N/A#
236N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
236N/A# Use is subject to license terms.
236N/A#
236N/A
236N/ASHELL=/usr/bin/ksh93
236N/A
406N/APROG= alias
236N/AALIASPROG= \
236N/A bg \
236N/A cd \
406N/A command \
406N/A fc \
236N/A fg \
236N/A getopts \
236N/A hash \
236N/A jobs \
236N/A kill \
236N/A read \
236N/A rev \
236N/A sleep \
236N/A sum \
236N/A test \
236N/A type \
236N/A ulimit \
236N/A umask \
236N/A unalias \
236N/A wait
236N/A
236N/Ainclude ../../Makefile.cmd
236N/A
236N/AROOTALIASPROG= $(ALIASPROG:%=$(ROOTBIN)/%)
236N/A
236N/AFILEMODE= 555
236N/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)
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: