1994-09-21 21:26:58 -04:00
|
|
|
# From: @(#)Makefile 8.3 (Berkeley) 1/7/94
|
1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1994-05-27 08:33:43 -04:00
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
1994-11-20 09:21:25 -05:00
|
|
|
# XXX MISSING: deroff diction graph learn plot
|
1998-03-20 07:34:21 -05:00
|
|
|
# spell spline struct xsend
|
2010-10-03 18:24:14 -04:00
|
|
|
# XXX Use GNU versions: diff ld patch
|
1994-08-07 21:13:35 -04:00
|
|
|
# Moved to secure: bdes
|
|
|
|
|
#
|
2002-11-09 20:01:58 -05:00
|
|
|
|
2002-07-16 18:16:05 -04:00
|
|
|
SUBDIR= alias \
|
|
|
|
|
apply \
|
2002-05-14 23:37:55 -04:00
|
|
|
asa \
|
2002-03-05 14:36:08 -05:00
|
|
|
awk \
|
1998-08-30 16:28:50 -04:00
|
|
|
banner \
|
|
|
|
|
basename \
|
2000-02-06 14:15:10 -05:00
|
|
|
brandelf \
|
2005-08-05 21:59:06 -04:00
|
|
|
bsdiff \
|
2001-06-21 15:18:16 -04:00
|
|
|
bzip2 \
|
2003-01-04 12:09:27 -05:00
|
|
|
bzip2recover \
|
1998-08-30 16:28:50 -04:00
|
|
|
cap_mkdb \
|
|
|
|
|
chat \
|
|
|
|
|
chpass \
|
|
|
|
|
cksum \
|
2010-06-09 15:57:20 -04:00
|
|
|
${_clang} \
|
1998-08-30 16:28:50 -04:00
|
|
|
cmp \
|
|
|
|
|
col \
|
|
|
|
|
colldef \
|
|
|
|
|
colrm \
|
|
|
|
|
column \
|
|
|
|
|
comm \
|
|
|
|
|
compress \
|
2008-03-02 02:52:26 -05:00
|
|
|
cpuset \
|
2002-05-02 03:46:36 -04:00
|
|
|
csplit \
|
1998-08-30 16:28:50 -04:00
|
|
|
cut \
|
|
|
|
|
dirname \
|
|
|
|
|
du \
|
|
|
|
|
ee \
|
2002-12-30 05:01:26 -05:00
|
|
|
elf2aout \
|
2003-01-15 13:33:32 -05:00
|
|
|
elfdump \
|
1998-11-02 06:01:38 -05:00
|
|
|
enigma \
|
1998-08-30 16:28:50 -04:00
|
|
|
env \
|
|
|
|
|
expand \
|
|
|
|
|
false \
|
|
|
|
|
fetch \
|
|
|
|
|
file \
|
|
|
|
|
find \
|
|
|
|
|
finger \
|
2010-02-09 13:22:26 -05:00
|
|
|
fmt \
|
1998-08-30 16:28:50 -04:00
|
|
|
fold \
|
1998-11-09 06:08:48 -05:00
|
|
|
fstat \
|
2000-07-19 04:38:18 -04:00
|
|
|
fsync \
|
1998-08-30 16:28:50 -04:00
|
|
|
ftp \
|
2002-09-13 14:29:08 -04:00
|
|
|
gcore \
|
1998-08-30 16:28:50 -04:00
|
|
|
gencat \
|
2002-08-10 01:43:40 -04:00
|
|
|
getconf \
|
2006-05-04 04:44:44 -04:00
|
|
|
getent \
|
1998-08-30 16:28:50 -04:00
|
|
|
getopt \
|
Add BSD grep to the base system and make it our default grep.
Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC),
lower memory usage than GNU grep, GNU compatibility,
BSD license.
TODO: Performance is somewhat behind GNU grep but it is only
significant for bigger searches. The reason is complex, the
most important factor is that GNU grep uses lots of
optimizations to improve the speed of the regex library.
First, we need a modern regex library (practically by adopting
TRE), add support for GNU-style non-standard regexes and then
reevalute the performance issues and look for bottlenecks. In
the meantime, for those, who need better performance, it is
possible to build GNU grep by setting WITH_GNU_GREP.
Approved by: delphij (mentor)
Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/),
freegrep (http://github.com/howardjp/freegrep)
Sponsored by: Google SoC 2008
Portbuild tests run by: kris, pav, erwin
Acknowledgements to: fjoe (as SoC 2008 mentor),
everyone who helped in reviewing and testing
2010-07-22 15:11:57 -04:00
|
|
|
${_grep} \
|
2007-01-26 05:19:08 -05:00
|
|
|
gzip \
|
1998-08-30 16:28:50 -04:00
|
|
|
head \
|
|
|
|
|
hexdump \
|
|
|
|
|
id \
|
|
|
|
|
ipcrm \
|
|
|
|
|
ipcs \
|
|
|
|
|
join \
|
|
|
|
|
jot \
|
|
|
|
|
kdump \
|
|
|
|
|
keylogin \
|
|
|
|
|
keylogout \
|
|
|
|
|
killall \
|
|
|
|
|
ktrace \
|
2002-04-01 23:28:57 -05:00
|
|
|
ktrdump \
|
1998-08-30 16:28:50 -04:00
|
|
|
lam \
|
|
|
|
|
last \
|
|
|
|
|
lastcomm \
|
1998-09-16 05:32:29 -04:00
|
|
|
ldd \
|
1998-09-24 06:28:28 -04:00
|
|
|
leave \
|
2000-05-22 06:00:00 -04:00
|
|
|
less \
|
|
|
|
|
lessecho \
|
|
|
|
|
lesskey \
|
1998-08-30 16:28:50 -04:00
|
|
|
limits \
|
2003-06-22 04:41:03 -04:00
|
|
|
locale \
|
1998-08-30 16:28:50 -04:00
|
|
|
lock \
|
|
|
|
|
lockf \
|
|
|
|
|
logger \
|
|
|
|
|
login \
|
2004-03-06 16:57:47 -05:00
|
|
|
logins \
|
1998-08-30 16:28:50 -04:00
|
|
|
logname \
|
|
|
|
|
look \
|
|
|
|
|
lorder \
|
|
|
|
|
lsvfs \
|
2010-05-10 02:59:50 -04:00
|
|
|
lzmainfo \
|
1998-08-30 16:28:50 -04:00
|
|
|
m4 \
|
2010-05-19 19:56:26 -04:00
|
|
|
${_makewhatis} \
|
2010-10-03 18:24:14 -04:00
|
|
|
${_man} \
|
1998-08-30 16:28:50 -04:00
|
|
|
mesg \
|
1998-09-24 06:28:28 -04:00
|
|
|
minigzip \
|
2007-12-20 11:40:25 -05:00
|
|
|
ministat \
|
1998-08-30 16:28:50 -04:00
|
|
|
mkdep \
|
|
|
|
|
mkfifo \
|
|
|
|
|
mklocale \
|
|
|
|
|
mktemp \
|
2005-05-11 13:02:38 -04:00
|
|
|
mkuzip \
|
1998-10-03 06:59:57 -04:00
|
|
|
mt \
|
1998-08-30 16:28:50 -04:00
|
|
|
ncal \
|
|
|
|
|
netstat \
|
2002-05-28 01:07:42 -04:00
|
|
|
newgrp \
|
1998-08-30 16:28:50 -04:00
|
|
|
nfsstat \
|
|
|
|
|
nice \
|
2001-05-04 13:25:23 -04:00
|
|
|
nl \
|
1998-08-30 16:28:50 -04:00
|
|
|
nohup \
|
|
|
|
|
opieinfo \
|
|
|
|
|
opiekey \
|
|
|
|
|
opiepasswd \
|
|
|
|
|
pagesize \
|
|
|
|
|
passwd \
|
|
|
|
|
paste \
|
2002-05-22 06:32:24 -04:00
|
|
|
pathchk \
|
2009-05-19 13:40:22 -04:00
|
|
|
perror \
|
1998-08-30 16:28:50 -04:00
|
|
|
pr \
|
|
|
|
|
printenv \
|
|
|
|
|
printf \
|
2007-12-02 18:32:03 -05:00
|
|
|
procstat \
|
1998-08-30 16:28:50 -04:00
|
|
|
renice \
|
|
|
|
|
rev \
|
2009-06-15 17:52:27 -04:00
|
|
|
revoke \
|
1998-08-30 16:28:50 -04:00
|
|
|
rpcinfo \
|
|
|
|
|
rs \
|
|
|
|
|
rup \
|
|
|
|
|
rusers \
|
|
|
|
|
rwall \
|
|
|
|
|
script \
|
|
|
|
|
sed \
|
2010-02-19 18:54:12 -05:00
|
|
|
seq \
|
1998-08-30 16:28:50 -04:00
|
|
|
shar \
|
|
|
|
|
showmount \
|
1999-04-15 09:42:48 -04:00
|
|
|
sockstat \
|
1998-08-30 16:28:50 -04:00
|
|
|
split \
|
2002-06-06 15:36:51 -04:00
|
|
|
stat \
|
1998-08-30 16:28:50 -04:00
|
|
|
su \
|
1998-11-09 05:52:43 -05:00
|
|
|
systat \
|
2002-05-20 22:36:12 -04:00
|
|
|
tabs \
|
1998-08-30 16:28:50 -04:00
|
|
|
tail \
|
|
|
|
|
talk \
|
2004-04-06 13:04:38 -04:00
|
|
|
tar \
|
1998-08-30 16:28:50 -04:00
|
|
|
tcopy \
|
|
|
|
|
tee \
|
|
|
|
|
tftp \
|
|
|
|
|
time \
|
2001-12-20 09:27:23 -05:00
|
|
|
tip \
|
1998-08-30 16:28:50 -04:00
|
|
|
top \
|
|
|
|
|
touch \
|
|
|
|
|
tput \
|
|
|
|
|
tr \
|
|
|
|
|
true \
|
2000-07-18 13:03:58 -04:00
|
|
|
truncate \
|
2010-09-13 11:30:09 -04:00
|
|
|
truss \
|
1998-08-30 16:28:50 -04:00
|
|
|
tset \
|
|
|
|
|
tsort \
|
|
|
|
|
tty \
|
|
|
|
|
uname \
|
|
|
|
|
unexpand \
|
|
|
|
|
uniq \
|
2009-12-03 13:02:55 -05:00
|
|
|
unzip \
|
1998-08-30 16:28:50 -04:00
|
|
|
units \
|
|
|
|
|
unvis \
|
|
|
|
|
users \
|
|
|
|
|
uudecode \
|
|
|
|
|
uuencode \
|
|
|
|
|
vi \
|
|
|
|
|
vis \
|
1998-11-10 07:19:26 -05:00
|
|
|
vmstat \
|
1998-08-30 16:28:50 -04:00
|
|
|
w \
|
|
|
|
|
wall \
|
|
|
|
|
wc \
|
|
|
|
|
what \
|
2002-07-03 15:23:50 -04:00
|
|
|
whereis \
|
1998-08-30 16:28:50 -04:00
|
|
|
which \
|
|
|
|
|
who \
|
|
|
|
|
whois \
|
|
|
|
|
write \
|
2010-01-14 15:58:45 -05:00
|
|
|
wtmpcvt \
|
1998-08-30 16:28:50 -04:00
|
|
|
xargs \
|
|
|
|
|
xinstall \
|
2002-11-09 20:01:58 -05:00
|
|
|
${_xlint} \
|
2008-09-21 18:02:26 -04:00
|
|
|
${_xstr} \
|
2010-05-10 02:59:50 -04:00
|
|
|
xz \
|
|
|
|
|
xzdec \
|
2003-08-29 06:35:01 -04:00
|
|
|
${_yacc} \
|
1998-08-30 16:28:50 -04:00
|
|
|
yes \
|
2004-11-13 15:40:32 -05:00
|
|
|
${_ypcat} \
|
|
|
|
|
${_ypmatch} \
|
|
|
|
|
${_ypwhich}
|
1998-03-13 14:41:06 -05:00
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
# NB: keep these sorted by MK_* knobs
|
|
|
|
|
|
|
|
|
|
.if ${MK_AT} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= at
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_ATM} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= atm
|
2004-01-16 10:23:19 -05:00
|
|
|
.endif
|
|
|
|
|
|
2010-05-19 19:56:26 -04:00
|
|
|
.if ${MK_MAN_UTILS} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= catman
|
2005-08-05 12:09:34 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_BIND_UTILS} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= dig
|
|
|
|
|
SUBDIR+= host
|
|
|
|
|
SUBDIR+= nslookup
|
|
|
|
|
SUBDIR+= nsupdate
|
2004-01-16 10:23:19 -05:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= bluetooth
|
2004-07-07 18:48:30 -04:00
|
|
|
.endif
|
|
|
|
|
|
2008-06-16 01:48:15 -04:00
|
|
|
.if ${MK_BSD_CPIO} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= cpio
|
2008-06-16 01:48:15 -04:00
|
|
|
.endif
|
|
|
|
|
|
2010-08-23 06:04:26 -04:00
|
|
|
.if ${MK_BSD_GREP} != "no"
|
|
|
|
|
_grep= grep
|
|
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_CALENDAR} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= calendar
|
2005-08-03 05:27:01 -04:00
|
|
|
.endif
|
|
|
|
|
|
2010-06-09 15:57:20 -04:00
|
|
|
.if ${MK_CLANG} != "no"
|
|
|
|
|
_clang= clang
|
|
|
|
|
.endif
|
|
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_HESIOD} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= hesinfo
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= bc
|
|
|
|
|
SUBDIR+= chkey
|
|
|
|
|
SUBDIR+= dc
|
|
|
|
|
SUBDIR+= newkey
|
2008-03-29 13:44:40 -04:00
|
|
|
.if ${MK_LIBTHR} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= csup
|
2006-03-21 06:00:54 -05:00
|
|
|
.endif
|
|
|
|
|
.endif
|
1999-11-29 21:18:13 -05:00
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_LOCATE} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= locate
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
# XXX msgs?
|
|
|
|
|
.if ${MK_MAIL} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= biff
|
|
|
|
|
SUBDIR+= from
|
|
|
|
|
SUBDIR+= mail
|
|
|
|
|
SUBDIR+= msgs
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_MAKE} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= make
|
2005-08-06 02:56:39 -04:00
|
|
|
.endif
|
|
|
|
|
|
2010-05-19 19:56:26 -04:00
|
|
|
.if ${MK_MAN_UTILS} != "no"
|
|
|
|
|
_makewhatis= makewhatis
|
2010-10-03 18:24:14 -04:00
|
|
|
_man= man
|
2010-05-19 19:56:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_NETCAT} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= nc
|
2005-02-13 02:12:23 -05:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_NIS} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= ypcat
|
|
|
|
|
SUBDIR+= ypmatch
|
|
|
|
|
SUBDIR+= ypwhich
|
2004-11-13 15:40:32 -05:00
|
|
|
.endif
|
|
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_QUOTAS} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= quota
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_RCMDS} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= rlogin
|
|
|
|
|
SUBDIR+= rsh
|
|
|
|
|
SUBDIR+= ruptime
|
|
|
|
|
SUBDIR+= rwho
|
2005-03-02 06:53:22 -05:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= vacation
|
2004-01-16 10:23:19 -05:00
|
|
|
.endif
|
|
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_TELNET} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= telnet
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_TEXTPROC} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= checknr
|
|
|
|
|
SUBDIR+= colcrt
|
|
|
|
|
SUBDIR+= ul
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_TOOLCHAIN} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= ar
|
|
|
|
|
SUBDIR+= c89
|
|
|
|
|
SUBDIR+= c99
|
|
|
|
|
SUBDIR+= compile_et
|
|
|
|
|
SUBDIR+= ctags
|
|
|
|
|
SUBDIR+= file2c
|
|
|
|
|
SUBDIR+= gprof
|
|
|
|
|
SUBDIR+= indent
|
|
|
|
|
SUBDIR+= lex
|
|
|
|
|
SUBDIR+= mkstr
|
|
|
|
|
SUBDIR+= rpcgen
|
|
|
|
|
SUBDIR+= unifdef
|
|
|
|
|
SUBDIR+= xlint
|
|
|
|
|
SUBDIR+= xstr
|
2008-09-21 18:02:26 -04:00
|
|
|
# XXX maybe under textproc?
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= vgrind
|
|
|
|
|
SUBDIR+= yacc
|
2001-11-11 00:26:59 -05:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_USB} != "no"
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR+= usbhidaction
|
|
|
|
|
SUBDIR+= usbhidctl
|
2001-08-02 11:47:03 -04:00
|
|
|
.endif
|
|
|
|
|
|
2010-09-13 11:30:09 -04:00
|
|
|
.include <bsd.arch.inc.mk>
|
2005-09-19 04:13:43 -04:00
|
|
|
|
2010-09-13 11:30:09 -04:00
|
|
|
SUBDIR:= ${SUBDIR:O}
|
2010-01-25 13:52:47 -05:00
|
|
|
|
1994-05-27 08:33:43 -04:00
|
|
|
.include <bsd.subdir.mk>
|