summaryrefslogtreecommitdiffstats
path: root/bin/sh/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-11-17 19:10:11 +0000
committerknu <knu@FreeBSD.org>2001-11-17 19:10:11 +0000
commitb58a3e40782ae0e677cf9298f2c46d94b75d464b (patch)
tree012bf9627bbece65cbf708b3fac1e45edf9656dc /bin/sh/Makefile
parent271e61648420b256374ae031ae2d70a0c59672ba (diff)
downloadFreeBSD-src-b58a3e40782ae0e677cf9298f2c46d94b75d464b.zip
FreeBSD-src-b58a3e40782ae0e677cf9298f2c46d94b75d464b.tar.gz
Make test(1) a builtin command of our sh(1) for efficiency. The
binary size increase is 3,784 bytes (about 0.6%). I don't drop the printf builtin while I'm here because some /etc/rc.* scripts seem to use it before mounting /usr where printf(1) resides. Reviewed by: arch (sheldonh) Inspired by: NetBSD, ksh Clued by: ume (on how the printf builtin is used)
Diffstat (limited to 'bin/sh/Makefile')
-rw-r--r--bin/sh/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
index 01c46f5..14e07ea 100644
--- a/bin/sh/Makefile
+++ b/bin/sh/Makefile
@@ -5,7 +5,7 @@ PROG= sh
SHSRCS= alias.c arith.y arith_lex.l cd.c echo.c error.c eval.c exec.c expand.c \
histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
mystring.c options.c output.c parser.c printf.c redir.c show.c \
- trap.c var.c
+ test.c trap.c var.c
GENSRCS= builtins.c init.c nodes.c syntax.c
GENHDRS= builtins.h nodes.h syntax.h token.h y.tab.h
SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} y.tab.h
@@ -22,7 +22,9 @@ CFLAGS+=-DSHELL -I. -I${.CURDIR}
# for debug:
# CFLAGS+= -g -DDEBUG=2
-.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
+.PATH: ${.CURDIR}/bltin \
+ ${.CURDIR}/../../bin/test \
+ ${.CURDIR}/../../usr.bin/printf
CLEANFILES+= mkinit mkinit.o mknodes mknodes.o \
mksyntax mksyntax.o
OpenPOWER on IntegriCloud