4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
29 # include global definitions; SRC should be defined in the shell.
30 # SRC is needed until RFE 1026993 is implemented.
31 include $(SRC
)/Makefile.master
32 include $(SRC
)/ucbcmd
/Makefile.ucbcmd
68 SUBDIRS
= $(COMMON_SUBDIRS
) $($(MACH
)_SUBDIRS
)
71 MSGSUBDIRS
= biff
install.d mkstr rusage shutdown
76 install:= TARGET
= install
78 clobber:= TARGET
= clobber
82 # Since pre-5.0 system users were told to put /usr/5bin in their path to
83 # get the 5.0 system behavior, we need this link so that the PATH of
84 # /usr/5bin:/usr/ucb:/usr/bin does the right thing. (let's see, without
85 # this link, 5.0 behaves like UCB and 4.1 behaves like SysV... I'm so
88 S5LINK
= $(ROOTUSR
)/5bin
89 DICTLINK
= $(ROOTUSR
)/dict
91 # Symbolic links for source compatibility. Many utilities that
92 # were under /usr/ucb in SunOS 4.1, are now in the base; the
93 # symbolic links are provided for compatibility.
94 LINKDEST
= ..
/bin
/$(@F
)
140 ROOTBINLINKS
= $(BINLINKS
:%=$(ROOTBIN
)/%)
142 OTHERLINKS
= $(ROOTETC
)/termcap \
143 $(ROOTSHLIB
)/zoneinfo
/posixrules
145 $(S5LINK
) := LINKDEST
= bin
146 $(DICTLINK
) := LINKDEST
= share
/lib
/dict
147 $(ROOTBIN
)/e
:= LINKDEST
= ..
/bin
/edit
148 $(ROOTBIN
)/ex
:= LINKDEST
= ..
/bin
/edit
149 $(ROOTBIN
)/page
:= LINKDEST
= ..
/bin
/more
150 $(ROOTBIN
)/quota
:= LINKDEST
= ..
/lib
/fs
/ufs
/quota
151 $(ROOTETC
)/termcap
:= LINKDEST
= ..
/usr
/share
/lib
/termcap
152 $(ROOTBIN
)/vi
:= LINKDEST
= ..
/bin
/edit
153 $(ROOTBIN
)/view
:= LINKDEST
= ..
/bin
/edit
154 $(ROOTSHLIB
)/zoneinfo
/posixrules
:= LINKDEST
= US
/Eastern
158 .PARALLEL
: $(SUBDIRS
)
160 all clean clobber: $(SUBDIRS
)
162 install: $(SUBDIRS
) .WAIT rootlinks
164 # For messaging catalog
170 bwos
: $(BWOSDIRS
) .WAIT
$(SUBDIRS
)
172 $(BWOSDIRS
) $(SUBDIRS
): FRC
173 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
175 rootlinks
: $(S5LINK
) $(DICTLINK
) $(ROOTBINLINKS
) $(OTHERLINKS
)
177 $(S5LINK
) $(DICTLINK
) $(ROOTBINLINKS
) $(OTHERLINKS
):
178 $(RM
) $@
; $(SYMLINK
) $(LINKDEST
) $@