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