Makefile revision 34f9b3eef6fdadbda0a846aa4d68691ac40eace5
0N/A#
1472N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A
328N/A#
0N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
328N/A
0N/ASHELL=/usr/bin/ksh93
0N/A
328N/APROG= alias
0N/AALIASPROG= \
0N/A bg \
0N/A cd \
560N/A cksum \
0N/A cmp \
0N/A comm \
0N/A command \
0N/A cut \
0N/A fc \
0N/A fg \
0N/A getopts \
560N/A hash \
0N/A jobs \
0N/A join \
328N/A kill \
0N/A logname \
0N/A paste \
0N/A print \
0N/A read \
328N/A rev \
0N/A sleep \
328N/A sum \
0N/A tee \
0N/A test \
328N/A type \
0N/A ulimit \
0N/A umask \
328N/A unalias \
0N/A uniq \
328N/A wait \
0N/A wc
0N/A
0N/Ainclude ../../Makefile.cmd
328N/A$(SPARC_BLD)include ../../Makefile.cmd.64
0N/A
0N/AROOTALIASPROG= $(ALIASPROG:%=$(ROOTBIN)/%)
560N/A
560N/AFILEMODE= 555
560N/AOWNER= root
560N/AGROUP= bin
328N/A
328N/A.KEEP_STATE:
328N/A
328N/Aall: $(PROG)
328N/A
328N/A$(ROOTBIN)/%: $(ROOTBIN)/alias
0N/A $(INS.link)
328N/A
328N/A.KEEP_STATE:
0N/A
0N/A# Set common AST build flags (e.g., needed to support the math stuff).
328N/Ainclude ../../../Makefile.ast
328N/A
0N/AOBJECTS= \
328N/A alias.o
328N/A
328N/ASRCS= $(OBJECTS:%.o=%.c)
328N/A
328N/AGROUP= bin
328N/ALDLIBS += -lshell -lcmd -last
328N/A
328N/ACPPFLAGS = \
328N/A $(DTEXTDOM) $(DTS_ERRNO) \
328N/A -I$(ROOT)/usr/include/ast \
328N/A -I$(ROOT)/usr/include
328N/A
0N/A# Enable workaround for a crash in /usr/bin/alias when invalid
328N/A# options are passed (e.g. $ /usr/bin/alias -c #). The shell
328N/A# code will call an error handler which does a |longjmp()| but
328N/A# somehow the code failed to do the |setjmp()| before this point.
328N/ACPPFLAGS += -DWORKAROUND_FOR_ALIAS_CRASH
328N/A
0N/ACFLAGS += \
328N/A $(ASTCFLAGS)
328N/ACFLAGS64 += \
328N/A $(ASTCFLAGS64)
328N/A
328N/AROOTCMDDIR=$(ROOT)/usr/bin
328N/A
328N/A# .WAIT is needed to get the hardlinks properly done
328N/Ainstall: all $(ROOTCMD) .WAIT $(ROOTALIASPROG)
328N/A
328N/A$(PROG): $(OBJECTS)
328N/A $(RM) alias
328N/A $(LINK.c) $(OBJECTS) -o $@ $(LDLIBS)
328N/A $(POST_PROCESS)
328N/A
328N/Aclean clobber:
328N/A rm -f $(PROG) $(OBJECTS)
328N/A
328N/Alint _msg:
328N/A