1994-09-22 01:26:58 +00:00
|
|
|
# From: @(#)Makefile 8.3 (Berkeley) 1/7/94
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1994-11-20 14:21:25 +00:00
|
|
|
# XXX MISSING: deroff diction graph learn plot
|
1998-03-20 12:34:21 +00:00
|
|
|
# spell spline struct xsend
|
2010-08-11 18:23:26 +00:00
|
|
|
# XXX Use GNU versions: apropos diff ld man patch whatis
|
1994-08-08 01:13:35 +00:00
|
|
|
# Moved to secure: bdes
|
|
|
|
#
|
2002-11-10 01:01:58 +00:00
|
|
|
|
2002-07-16 22:16:05 +00:00
|
|
|
SUBDIR= alias \
|
|
|
|
apply \
|
2002-05-15 03:37:55 +00:00
|
|
|
asa \
|
2002-03-05 19:36:08 +00:00
|
|
|
awk \
|
1998-08-30 20:28:50 +00:00
|
|
|
banner \
|
|
|
|
basename \
|
2000-02-06 19:15:10 +00:00
|
|
|
brandelf \
|
2005-08-06 01:59:06 +00:00
|
|
|
bsdiff \
|
2001-06-21 19:18:16 +00:00
|
|
|
bzip2 \
|
2003-01-04 17:09:27 +00:00
|
|
|
bzip2recover \
|
1998-08-30 20:28:50 +00:00
|
|
|
cap_mkdb \
|
|
|
|
chat \
|
|
|
|
chpass \
|
|
|
|
cksum \
|
2010-06-09 19:57:20 +00:00
|
|
|
${_clang} \
|
1998-08-30 20:28:50 +00:00
|
|
|
cmp \
|
|
|
|
col \
|
|
|
|
colldef \
|
|
|
|
colrm \
|
|
|
|
column \
|
|
|
|
comm \
|
|
|
|
compress \
|
2008-03-02 07:52:26 +00:00
|
|
|
cpuset \
|
2002-05-02 07:46:36 +00:00
|
|
|
csplit \
|
1998-08-30 20:28:50 +00:00
|
|
|
cut \
|
|
|
|
dirname \
|
|
|
|
du \
|
|
|
|
ee \
|
2002-12-30 10:01:26 +00:00
|
|
|
elf2aout \
|
2003-01-15 18:33:32 +00:00
|
|
|
elfdump \
|
1998-11-02 11:01:38 +00:00
|
|
|
enigma \
|
1998-08-30 20:28:50 +00:00
|
|
|
env \
|
|
|
|
expand \
|
|
|
|
false \
|
|
|
|
fetch \
|
|
|
|
file \
|
|
|
|
find \
|
|
|
|
finger \
|
2010-02-09 18:22:26 +00:00
|
|
|
fmt \
|
1998-08-30 20:28:50 +00:00
|
|
|
fold \
|
1998-11-09 11:08:48 +00:00
|
|
|
fstat \
|
2000-07-19 08:38:18 +00:00
|
|
|
fsync \
|
1998-08-30 20:28:50 +00:00
|
|
|
ftp \
|
2002-09-13 18:29:08 +00:00
|
|
|
gcore \
|
1998-08-30 20:28:50 +00:00
|
|
|
gencat \
|
2002-08-10 05:43:40 +00:00
|
|
|
getconf \
|
2006-05-04 08:44:44 +00:00
|
|
|
getent \
|
1998-08-30 20:28:50 +00: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 19:11:57 +00:00
|
|
|
${_grep} \
|
2007-01-26 10:19:08 +00:00
|
|
|
gzip \
|
1998-08-30 20:28:50 +00:00
|
|
|
head \
|
|
|
|
hexdump \
|
|
|
|
id \
|
|
|
|
ipcrm \
|
|
|
|
ipcs \
|
|
|
|
join \
|
|
|
|
jot \
|
|
|
|
kdump \
|
|
|
|
keylogin \
|
|
|
|
keylogout \
|
|
|
|
killall \
|
|
|
|
ktrace \
|
2002-04-02 04:28:57 +00:00
|
|
|
ktrdump \
|
1998-08-30 20:28:50 +00:00
|
|
|
lam \
|
|
|
|
last \
|
|
|
|
lastcomm \
|
1998-09-16 09:32:29 +00:00
|
|
|
ldd \
|
1998-09-24 10:28:28 +00:00
|
|
|
leave \
|
2000-05-22 10:00:00 +00:00
|
|
|
less \
|
|
|
|
lessecho \
|
|
|
|
lesskey \
|
1998-08-30 20:28:50 +00:00
|
|
|
limits \
|
2003-06-22 08:41:03 +00:00
|
|
|
locale \
|
1998-08-30 20:28:50 +00:00
|
|
|
lock \
|
|
|
|
lockf \
|
|
|
|
logger \
|
|
|
|
login \
|
2004-03-06 21:57:47 +00:00
|
|
|
logins \
|
1998-08-30 20:28:50 +00:00
|
|
|
logname \
|
|
|
|
look \
|
|
|
|
lorder \
|
|
|
|
lsvfs \
|
2010-05-10 06:59:50 +00:00
|
|
|
lzmainfo \
|
1998-08-30 20:28:50 +00:00
|
|
|
m4 \
|
2010-05-19 23:56:26 +00:00
|
|
|
${_makewhatis} \
|
1998-08-30 20:28:50 +00:00
|
|
|
mesg \
|
1998-09-24 10:28:28 +00:00
|
|
|
minigzip \
|
2007-12-20 16:40:25 +00:00
|
|
|
ministat \
|
1998-08-30 20:28:50 +00:00
|
|
|
mkdep \
|
|
|
|
mkfifo \
|
|
|
|
mklocale \
|
|
|
|
mktemp \
|
2005-05-11 17:02:38 +00:00
|
|
|
mkuzip \
|
1998-10-03 10:59:57 +00:00
|
|
|
mt \
|
1998-08-30 20:28:50 +00:00
|
|
|
ncal \
|
|
|
|
netstat \
|
2002-05-28 05:07:42 +00:00
|
|
|
newgrp \
|
1998-08-30 20:28:50 +00:00
|
|
|
nfsstat \
|
|
|
|
nice \
|
2001-05-04 17:25:23 +00:00
|
|
|
nl \
|
1998-08-30 20:28:50 +00:00
|
|
|
nohup \
|
|
|
|
opieinfo \
|
|
|
|
opiekey \
|
|
|
|
opiepasswd \
|
|
|
|
pagesize \
|
|
|
|
passwd \
|
|
|
|
paste \
|
2002-05-22 10:32:24 +00:00
|
|
|
pathchk \
|
2009-05-19 17:40:22 +00:00
|
|
|
perror \
|
1998-08-30 20:28:50 +00:00
|
|
|
pr \
|
|
|
|
printenv \
|
|
|
|
printf \
|
2007-12-02 23:32:03 +00:00
|
|
|
procstat \
|
1998-08-30 20:28:50 +00:00
|
|
|
renice \
|
|
|
|
rev \
|
2009-06-15 21:52:27 +00:00
|
|
|
revoke \
|
1998-08-30 20:28:50 +00:00
|
|
|
rpcinfo \
|
|
|
|
rs \
|
|
|
|
rup \
|
|
|
|
rusers \
|
|
|
|
rwall \
|
|
|
|
script \
|
|
|
|
sed \
|
2010-02-19 23:54:12 +00:00
|
|
|
seq \
|
1998-08-30 20:28:50 +00:00
|
|
|
shar \
|
|
|
|
showmount \
|
1999-04-15 13:42:48 +00:00
|
|
|
sockstat \
|
1998-08-30 20:28:50 +00:00
|
|
|
split \
|
2002-06-06 19:36:51 +00:00
|
|
|
stat \
|
1998-08-30 20:28:50 +00:00
|
|
|
su \
|
1998-11-09 10:52:43 +00:00
|
|
|
systat \
|
2002-05-21 02:36:12 +00:00
|
|
|
tabs \
|
1998-08-30 20:28:50 +00:00
|
|
|
tail \
|
|
|
|
talk \
|
2004-04-06 17:04:38 +00:00
|
|
|
tar \
|
1998-08-30 20:28:50 +00:00
|
|
|
tcopy \
|
|
|
|
tee \
|
|
|
|
tftp \
|
|
|
|
time \
|
2001-12-20 14:27:23 +00:00
|
|
|
tip \
|
1998-08-30 20:28:50 +00:00
|
|
|
top \
|
|
|
|
touch \
|
|
|
|
tput \
|
|
|
|
tr \
|
|
|
|
true \
|
2000-07-18 17:03:58 +00:00
|
|
|
truncate \
|
2010-09-13 15:30:09 +00:00
|
|
|
truss \
|
1998-08-30 20:28:50 +00:00
|
|
|
tset \
|
|
|
|
tsort \
|
|
|
|
tty \
|
|
|
|
uname \
|
|
|
|
unexpand \
|
|
|
|
uniq \
|
2009-12-03 18:02:55 +00:00
|
|
|
unzip \
|
1998-08-30 20:28:50 +00:00
|
|
|
units \
|
|
|
|
unvis \
|
|
|
|
users \
|
|
|
|
uudecode \
|
|
|
|
uuencode \
|
|
|
|
vi \
|
|
|
|
vis \
|
1998-11-10 12:19:26 +00:00
|
|
|
vmstat \
|
1998-08-30 20:28:50 +00:00
|
|
|
w \
|
|
|
|
wall \
|
|
|
|
wc \
|
|
|
|
what \
|
2002-07-03 19:23:50 +00:00
|
|
|
whereis \
|
1998-08-30 20:28:50 +00:00
|
|
|
which \
|
|
|
|
who \
|
|
|
|
whois \
|
|
|
|
write \
|
2010-01-14 20:58:45 +00:00
|
|
|
wtmpcvt \
|
1998-08-30 20:28:50 +00:00
|
|
|
xargs \
|
|
|
|
xinstall \
|
2002-11-10 01:01:58 +00:00
|
|
|
${_xlint} \
|
2008-09-21 22:02:26 +00:00
|
|
|
${_xstr} \
|
2010-05-10 06:59:50 +00:00
|
|
|
xz \
|
|
|
|
xzdec \
|
2003-08-29 10:35:01 +00:00
|
|
|
${_yacc} \
|
1998-08-30 20:28:50 +00:00
|
|
|
yes \
|
2004-11-13 20:40:32 +00:00
|
|
|
${_ypcat} \
|
|
|
|
${_ypmatch} \
|
|
|
|
${_ypwhich}
|
1998-03-13 19:41:06 +00:00
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
# NB: keep these sorted by MK_* knobs
|
|
|
|
|
|
|
|
.if ${MK_AT} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= at
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_ATM} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= atm
|
2004-01-16 15:23:19 +00:00
|
|
|
.endif
|
|
|
|
|
2010-05-19 23:56:26 +00:00
|
|
|
.if ${MK_MAN_UTILS} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= catman
|
2005-08-05 16:09:34 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND_UTILS} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= dig
|
|
|
|
SUBDIR+= host
|
|
|
|
SUBDIR+= nslookup
|
|
|
|
SUBDIR+= nsupdate
|
2004-01-16 15:23:19 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= bluetooth
|
2004-07-07 22:48:30 +00:00
|
|
|
.endif
|
|
|
|
|
2008-06-16 05:48:15 +00:00
|
|
|
.if ${MK_BSD_CPIO} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= cpio
|
2008-06-16 05:48:15 +00:00
|
|
|
.endif
|
|
|
|
|
2010-08-23 10:04:26 +00:00
|
|
|
.if ${MK_BSD_GREP} != "no"
|
|
|
|
_grep= grep
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_CALENDAR} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= calendar
|
2005-08-03 09:27:01 +00:00
|
|
|
.endif
|
|
|
|
|
2010-06-09 19:57:20 +00:00
|
|
|
.if ${MK_CLANG} != "no"
|
|
|
|
_clang= clang
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_HESIOD} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= hesinfo
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= bc
|
|
|
|
SUBDIR+= chkey
|
|
|
|
SUBDIR+= dc
|
|
|
|
SUBDIR+= newkey
|
2008-03-29 17:44:40 +00:00
|
|
|
.if ${MK_LIBTHR} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= csup
|
2006-03-21 11:00:54 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
1999-11-30 02:18:13 +00:00
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_LOCATE} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= locate
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# XXX msgs?
|
|
|
|
.if ${MK_MAIL} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= biff
|
|
|
|
SUBDIR+= from
|
|
|
|
SUBDIR+= mail
|
|
|
|
SUBDIR+= msgs
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_MAKE} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= make
|
2005-08-06 06:56:39 +00:00
|
|
|
.endif
|
|
|
|
|
2010-05-19 23:56:26 +00:00
|
|
|
.if ${MK_MAN_UTILS} != "no"
|
|
|
|
_makewhatis= makewhatis
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NETCAT} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= nc
|
2005-02-13 07:12:23 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= ypcat
|
|
|
|
SUBDIR+= ypmatch
|
|
|
|
SUBDIR+= ypwhich
|
2004-11-13 20:40:32 +00:00
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_QUOTAS} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= quota
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_RCMDS} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= rlogin
|
|
|
|
SUBDIR+= rsh
|
|
|
|
SUBDIR+= ruptime
|
|
|
|
SUBDIR+= rwho
|
2005-03-02 11:53:22 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= vacation
|
2004-01-16 15:23:19 +00:00
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_TELNET} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= telnet
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_TEXTPROC} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= checknr
|
|
|
|
SUBDIR+= colcrt
|
|
|
|
SUBDIR+= ul
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_TOOLCHAIN} != "no"
|
2010-09-13 15:30:09 +00: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 22:02:26 +00:00
|
|
|
# XXX maybe under textproc?
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= vgrind
|
|
|
|
SUBDIR+= yacc
|
2001-11-11 05:26:59 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_USB} != "no"
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR+= usbhidaction
|
|
|
|
SUBDIR+= usbhidctl
|
2001-08-02 15:47:03 +00:00
|
|
|
.endif
|
|
|
|
|
2010-09-13 15:30:09 +00:00
|
|
|
.include <bsd.arch.inc.mk>
|
2005-09-19 08:13:43 +00:00
|
|
|
|
2010-09-13 15:30:09 +00:00
|
|
|
SUBDIR:= ${SUBDIR:O}
|
2010-01-25 18:52:47 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.subdir.mk>
|