summaryrefslogtreecommitdiffstats
path: root/bin/sh/Makefile
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-02-08 23:18:06 +0000
committerjilles <jilles@FreeBSD.org>2011-02-08 23:18:06 +0000
commit1cbab8a321b4fa3392f1ed1ec381b3fadbc41558 (patch)
treebb9c25c32a33a77e92cd3306937e474e7efe2da0 /bin/sh/Makefile
parent6543d03b931354fdbab3e83e273b87c539c81231 (diff)
downloadFreeBSD-src-1cbab8a321b4fa3392f1ed1ec381b3fadbc41558.zip
FreeBSD-src-1cbab8a321b4fa3392f1ed1ec381b3fadbc41558.tar.gz
sh: Import arithmetic expression code from dash.
New features: * proper lazy evaluation of || and && * ?: ternary operator * executable is considerably smaller (8K on i386) because lex and yacc are no longer used Differences from dash: * arith_t instead of intmax_t * imaxdiv() not used * unset or null variables default to 0 * let/exp builtin (undocumented, will probably be removed later) Obtained from: dash
Diffstat (limited to 'bin/sh/Makefile')
-rw-r--r--bin/sh/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
index 47642df..afca8a3 100644
--- a/bin/sh/Makefile
+++ b/bin/sh/Makefile
@@ -3,22 +3,22 @@
PROG= sh
INSTALLFLAGS= -S
-SHSRCS= alias.c arith.y arith_lex.l cd.c echo.c error.c eval.c exec.c expand.c \
+SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
+ exec.c expand.c \
histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
mystring.c options.c output.c parser.c printf.c redir.c show.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
-SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} y.tab.h
+SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
# MLINKS for Shell built in commands for which there are no userland
# utilities of the same name are handled with the associated manpage,
# builtin.1 in share/man/man1/.
-DPADD= ${LIBL} ${LIBEDIT} ${LIBTERMCAP}
-LDADD= -ll -ledit -ltermcap
+DPADD= ${LIBEDIT} ${LIBTERMCAP}
+LDADD= -ledit -ltermcap
-LFLAGS= -8 # 8-bit lex scanner for arithmetic
CFLAGS+=-DSHELL -I. -I${.CURDIR}
# for debug:
# DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline
OpenPOWER on IntegriCloud