10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 58822SCasper.Dik@Sun.COM# Common Development and Distribution License (the "License"). 68822SCasper.Dik@Sun.COM# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 21*11838SLiane.Praza@Sun.COM 22*11838SLiane.Praza@Sun.COM# 23*11838SLiane.Praza@Sun.COM# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate# Use is subject to license terms. 250Sstevel@tonic-gate# 26*11838SLiane.Praza@Sun.COM 270Sstevel@tonic-gate# ucbcmd/Makefile 280Sstevel@tonic-gate 290Sstevel@tonic-gate# include global definitions; SRC should be defined in the shell. 300Sstevel@tonic-gate# SRC is needed until RFE 1026993 is implemented. 310Sstevel@tonic-gateinclude $(SRC)/Makefile.master 320Sstevel@tonic-gateinclude $(SRC)/ucbcmd/Makefile.ucbcmd 330Sstevel@tonic-gate 340Sstevel@tonic-gateCOMMON_SUBDIRS= \ 350Sstevel@tonic-gate basename \ 360Sstevel@tonic-gate biff \ 370Sstevel@tonic-gate chown \ 380Sstevel@tonic-gate df \ 390Sstevel@tonic-gate du \ 400Sstevel@tonic-gate echo \ 410Sstevel@tonic-gate expr \ 420Sstevel@tonic-gate fastboot \ 430Sstevel@tonic-gate fasthalt \ 440Sstevel@tonic-gate file \ 450Sstevel@tonic-gate from \ 460Sstevel@tonic-gate groups \ 470Sstevel@tonic-gate install.d \ 480Sstevel@tonic-gate ln \ 490Sstevel@tonic-gate ls \ 500Sstevel@tonic-gate mkstr \ 510Sstevel@tonic-gate printenv \ 520Sstevel@tonic-gate rusage \ 530Sstevel@tonic-gate sed \ 540Sstevel@tonic-gate shutdown \ 550Sstevel@tonic-gate stty \ 560Sstevel@tonic-gate sum \ 570Sstevel@tonic-gate test \ 580Sstevel@tonic-gate touch \ 590Sstevel@tonic-gate tr \ 600Sstevel@tonic-gate tset \ 610Sstevel@tonic-gate users \ 620Sstevel@tonic-gate vipw \ 630Sstevel@tonic-gate whereis \ 640Sstevel@tonic-gate whoami 650Sstevel@tonic-gate 660Sstevel@tonic-gatesparc_SUBDIRS= sbcp 670Sstevel@tonic-gate 680Sstevel@tonic-gateSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS) 690Sstevel@tonic-gate 700Sstevel@tonic-gate# commands messaged 7110077SJerry.Gilliam@Sun.COMMSGSUBDIRS = biff install.d mkstr rusage shutdown 720Sstevel@tonic-gate 730Sstevel@tonic-gateBWOSDIRS= 740Sstevel@tonic-gate 750Sstevel@tonic-gateall:= TARGET= all 760Sstevel@tonic-gateinstall:= TARGET= install 770Sstevel@tonic-gateclean:= TARGET= clean 780Sstevel@tonic-gateclobber:= TARGET= clobber 790Sstevel@tonic-gatelint:= TARGET= lint 800Sstevel@tonic-gate_msg:= TARGET= _msg 810Sstevel@tonic-gate 820Sstevel@tonic-gate# Since pre-5.0 system users were told to put /usr/5bin in their path to 830Sstevel@tonic-gate# get the 5.0 system behavior, we need this link so that the PATH of 840Sstevel@tonic-gate# /usr/5bin:/usr/ucb:/usr/bin does the right thing. (let's see, without 850Sstevel@tonic-gate# this link, 5.0 behaves like UCB and 4.1 behaves like SysV... I'm so 860Sstevel@tonic-gate# confused...) 870Sstevel@tonic-gateROOTUSR = $(ROOT)/usr 880Sstevel@tonic-gateS5LINK = $(ROOTUSR)/5bin 890Sstevel@tonic-gateDICTLINK = $(ROOTUSR)/dict 900Sstevel@tonic-gate 910Sstevel@tonic-gate# Symbolic links for source compatibility. Many utilities that 920Sstevel@tonic-gate# were under /usr/ucb in SunOS 4.1, are now in the base; the 930Sstevel@tonic-gate# symbolic links are provided for compatibility. 940Sstevel@tonic-gateLINKDEST= ../bin/$(@F) 950Sstevel@tonic-gate 960Sstevel@tonic-gateBINLINKS= \ 970Sstevel@tonic-gate arch \ 980Sstevel@tonic-gate clear \ 990Sstevel@tonic-gate e \ 1000Sstevel@tonic-gate edit \ 1010Sstevel@tonic-gate ex \ 1020Sstevel@tonic-gate vedit \ 1030Sstevel@tonic-gate vi \ 1040Sstevel@tonic-gate view \ 1050Sstevel@tonic-gate finger \ 1060Sstevel@tonic-gate fmt \ 1070Sstevel@tonic-gate fold \ 1080Sstevel@tonic-gate ftp \ 1090Sstevel@tonic-gate head \ 1100Sstevel@tonic-gate hostid \ 1110Sstevel@tonic-gate hostname \ 1120Sstevel@tonic-gate logger \ 1130Sstevel@tonic-gate mach \ 1140Sstevel@tonic-gate more \ 1150Sstevel@tonic-gate page \ 1160Sstevel@tonic-gate pagesize \ 1170Sstevel@tonic-gate netstat \ 1180Sstevel@tonic-gate quota \ 1190Sstevel@tonic-gate rcp \ 1200Sstevel@tonic-gate rdate \ 1210Sstevel@tonic-gate renice \ 1220Sstevel@tonic-gate rlogin \ 1230Sstevel@tonic-gate rsh \ 1240Sstevel@tonic-gate ruptime \ 1250Sstevel@tonic-gate rwho \ 1260Sstevel@tonic-gate script \ 1270Sstevel@tonic-gate tail \ 1280Sstevel@tonic-gate talk \ 1290Sstevel@tonic-gate tcopy \ 1300Sstevel@tonic-gate telnet \ 1310Sstevel@tonic-gate tftp \ 1320Sstevel@tonic-gate uptime \ 1330Sstevel@tonic-gate vacation \ 1340Sstevel@tonic-gate vmstat \ 1350Sstevel@tonic-gate w \ 1360Sstevel@tonic-gate wc \ 1370Sstevel@tonic-gate whois \ 1380Sstevel@tonic-gate xstr 1390Sstevel@tonic-gate 1400Sstevel@tonic-gateROOTBINLINKS = $(BINLINKS:%=$(ROOTBIN)/%) 1410Sstevel@tonic-gate 1420Sstevel@tonic-gateOTHERLINKS = $(ROOTETC)/termcap \ 1430Sstevel@tonic-gate $(ROOTSHLIB)/zoneinfo/posixrules 1440Sstevel@tonic-gate 1450Sstevel@tonic-gate$(S5LINK) := LINKDEST= bin 1460Sstevel@tonic-gate$(DICTLINK) := LINKDEST= share/lib/dict 147*11838SLiane.Praza@Sun.COM$(ROOTBIN)/e := LINKDEST= ../bin/edit 148*11838SLiane.Praza@Sun.COM$(ROOTBIN)/ex := LINKDEST= ../bin/edit 1490Sstevel@tonic-gate$(ROOTBIN)/page := LINKDEST= ../bin/more 1500Sstevel@tonic-gate$(ROOTBIN)/quota := LINKDEST= ../lib/fs/ufs/quota 1510Sstevel@tonic-gate$(ROOTETC)/termcap := LINKDEST= ../usr/share/lib/termcap 152*11838SLiane.Praza@Sun.COM$(ROOTBIN)/vi := LINKDEST= ../bin/edit 153*11838SLiane.Praza@Sun.COM$(ROOTBIN)/view := LINKDEST= ../bin/edit 1540Sstevel@tonic-gate$(ROOTSHLIB)/zoneinfo/posixrules := LINKDEST= US/Eastern 1550Sstevel@tonic-gate 1560Sstevel@tonic-gate.KEEP_STATE: 1570Sstevel@tonic-gate 1580Sstevel@tonic-gate.PARALLEL: $(SUBDIRS) 1590Sstevel@tonic-gate 1600Sstevel@tonic-gateall clean clobber: $(SUBDIRS) 1610Sstevel@tonic-gate 1620Sstevel@tonic-gateinstall: $(SUBDIRS) .WAIT rootlinks 1630Sstevel@tonic-gate 1640Sstevel@tonic-gate# For messaging catalog 1650Sstevel@tonic-gate# 1660Sstevel@tonic-gate_msg: $(MSGSUBDIRS) 1670Sstevel@tonic-gate 1680Sstevel@tonic-gate 1690Sstevel@tonic-gate 1700Sstevel@tonic-gatebwos: $(BWOSDIRS) .WAIT $(SUBDIRS) 1710Sstevel@tonic-gate 1720Sstevel@tonic-gate$(BWOSDIRS) $(SUBDIRS): FRC 1730Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1740Sstevel@tonic-gate 1750Sstevel@tonic-gaterootlinks: $(S5LINK) $(DICTLINK) $(ROOTBINLINKS) $(OTHERLINKS) 1760Sstevel@tonic-gate 1770Sstevel@tonic-gate$(S5LINK) $(DICTLINK) $(ROOTBINLINKS) $(OTHERLINKS): 1780Sstevel@tonic-gate $(RM) $@; $(SYMLINK) $(LINKDEST) $@ 1790Sstevel@tonic-gate 1800Sstevel@tonic-gateFRC: 181