xref: /titanic_50/usr/src/cmd/ksh/builtins/Makefile (revision 81af778e872fc2ec5f0ac36e7b25bdb24ebd2d6a)
17c2fbfb3SApril Chin#
27c2fbfb3SApril Chin# CDDL HEADER START
37c2fbfb3SApril Chin#
47c2fbfb3SApril Chin# The contents of this file are subject to the terms of the
57c2fbfb3SApril Chin# Common Development and Distribution License (the "License").
67c2fbfb3SApril Chin# You may not use this file except in compliance with the License.
77c2fbfb3SApril Chin#
87c2fbfb3SApril Chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c2fbfb3SApril Chin# or http://www.opensolaris.org/os/licensing.
107c2fbfb3SApril Chin# See the License for the specific language governing permissions
117c2fbfb3SApril Chin# and limitations under the License.
127c2fbfb3SApril Chin#
137c2fbfb3SApril Chin# When distributing Covered Code, include this CDDL HEADER in each
147c2fbfb3SApril Chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c2fbfb3SApril Chin# If applicable, add the following below this CDDL HEADER, with the
167c2fbfb3SApril Chin# fields enclosed by brackets "[]" replaced with your own identifying
177c2fbfb3SApril Chin# information: Portions Copyright [yyyy] [name of copyright owner]
187c2fbfb3SApril Chin#
197c2fbfb3SApril Chin# CDDL HEADER END
207c2fbfb3SApril Chin#
217c2fbfb3SApril Chin
227c2fbfb3SApril Chin#
23*81af778eSCasper H.S. Dik# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
247c2fbfb3SApril Chin# Use is subject to license terms.
257c2fbfb3SApril Chin#
267c2fbfb3SApril Chin
277c2fbfb3SApril ChinSHELL=/usr/bin/ksh93
287c2fbfb3SApril Chin
297c2fbfb3SApril ChinPROG= alias
307c2fbfb3SApril ChinALIASPROG= \
317c2fbfb3SApril Chin	bg \
327c2fbfb3SApril Chin	cd \
337c2fbfb3SApril Chin	command \
347c2fbfb3SApril Chin	fc \
357c2fbfb3SApril Chin	fg \
367c2fbfb3SApril Chin	getopts \
377c2fbfb3SApril Chin	hash \
387c2fbfb3SApril Chin	jobs \
397c2fbfb3SApril Chin	kill \
407c2fbfb3SApril Chin	read \
417c2fbfb3SApril Chin	rev \
427c2fbfb3SApril Chin	sleep \
437c2fbfb3SApril Chin	sum \
447c2fbfb3SApril Chin	test \
457c2fbfb3SApril Chin	type \
467c2fbfb3SApril Chin	ulimit \
477c2fbfb3SApril Chin	umask \
487c2fbfb3SApril Chin	unalias \
497c2fbfb3SApril Chin	wait
507c2fbfb3SApril Chin
517c2fbfb3SApril Chininclude ../../Makefile.cmd
527c2fbfb3SApril Chin
537c2fbfb3SApril ChinROOTALIASPROG= $(ALIASPROG:%=$(ROOTBIN)/%)
547c2fbfb3SApril Chin
557c2fbfb3SApril ChinFILEMODE= 555
567c2fbfb3SApril ChinOWNER= root
577c2fbfb3SApril ChinGROUP= bin
587c2fbfb3SApril Chin
597c2fbfb3SApril Chin.KEEP_STATE:
607c2fbfb3SApril Chin
617c2fbfb3SApril Chinall: $(PROG)
627c2fbfb3SApril Chin
637c2fbfb3SApril Chin$(ROOTBIN)/%: $(ROOTBIN)/alias
647c2fbfb3SApril Chin	$(INS.link)
657c2fbfb3SApril Chin
66*81af778eSCasper H.S. Dikinclude ../../Makefile.cmd
677c2fbfb3SApril Chin
68*81af778eSCasper H.S. Dik.KEEP_STATE:
69*81af778eSCasper H.S. Dik
70*81af778eSCasper H.S. Dik# Set common AST build flags (e.g., needed to support the math stuff).
71*81af778eSCasper H.S. Dikinclude ../../../Makefile.ast
72*81af778eSCasper H.S. Dik
73*81af778eSCasper H.S. DikOBJECTS= \
74*81af778eSCasper H.S. Dik        alias.o
75*81af778eSCasper H.S. Dik
76*81af778eSCasper H.S. DikSRCS=	$(OBJECTS:%.o=%.c)
77*81af778eSCasper H.S. Dik
78*81af778eSCasper H.S. DikGROUP= bin
79*81af778eSCasper H.S. DikLDLIBS += -lshell -last
80*81af778eSCasper H.S. Dik
81*81af778eSCasper H.S. DikCPPFLAGS = \
82*81af778eSCasper H.S. Dik	$(DTEXTDOM) $(DTS_ERRNO) \
83*81af778eSCasper H.S. Dik	-I$(ROOT)/usr/include/ast
84*81af778eSCasper H.S. Dik
85*81af778eSCasper H.S. DikCFLAGS += \
86*81af778eSCasper H.S. Dik	$(ASTCFLAGS)
87*81af778eSCasper H.S. DikCFLAGS64 += \
88*81af778eSCasper H.S. Dik	$(ASTCFLAGS64)
89*81af778eSCasper H.S. Dik
90*81af778eSCasper H.S. DikROOTCMDDIR=$(ROOT)/usr/bin
91*81af778eSCasper H.S. Dik
92*81af778eSCasper H.S. Dik# .WAIT is needed to get the hardlinks properly done
93*81af778eSCasper H.S. Dikinstall: all $(ROOTCMD) .WAIT $(ROOTALIASPROG)
94*81af778eSCasper H.S. Dik
95*81af778eSCasper H.S. Dik$(PROG):	$(OBJECTS)
96*81af778eSCasper H.S. Dik	$(RM) alias
97*81af778eSCasper H.S. Dik	$(LINK.c) $(OBJECTS) -o $@ $(LDLIBS)
98*81af778eSCasper H.S. Dik	$(POST_PROCESS)
997c2fbfb3SApril Chin
1007c2fbfb3SApril Chinclean clobber:
101*81af778eSCasper H.S. Dik	rm -f $(PROG) $(OBJECTS)
1027c2fbfb3SApril Chin
103*81af778eSCasper H.S. Diklint _msg:
104