summaryrefslogtreecommitdiffstats
path: root/bin/sh/Makefile
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-05-26 06:18:55 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-05-26 06:18:55 +0000
commite3cfc8ce61f788739c66445d903f8beacb40c93d (patch)
treeba7beef9ee9289c4383bad976f88710e44c98b4d /bin/sh/Makefile
parent862fdf11a2ede45dec0da01ed575525d79468981 (diff)
downloadFreeBSD-src-e3cfc8ce61f788739c66445d903f8beacb40c93d.zip
FreeBSD-src-e3cfc8ce61f788739c66445d903f8beacb40c93d.tar.gz
BSD 4.4 Lite bin Sources
Diffstat (limited to 'bin/sh/Makefile')
-rw-r--r--bin/sh/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
new file mode 100644
index 0000000..3114da6
--- /dev/null
+++ b/bin/sh/Makefile
@@ -0,0 +1,49 @@
+# @(#)Makefile 8.1 (Berkeley) 6/8/93
+
+PROG= sh
+SRCS= alias.c builtins.c 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 nodes.c options.c parser.c printf.c redir.c show.c \
+ signames.c syntax.c trap.c output.c var.c
+OBJS+= init.o arith.o arith_lex.o
+LDADD= -ll -ledit -ltermcap -lcompat
+LFLAGS= -8 # 8-bit lex scanner for arithmetic
+CFLAGS+=-DSHELL -I. -I${.CURDIR}
+.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
+CLEANFILES+=\
+ builtins.c builtins.h init.c mkinit mknodes mksignames mksyntax \
+ nodes.c nodes.h signames.c signames.h syntax.c syntax.h token.def \
+ y.tab.h
+
+.depend parser.o: token.def
+token.def: mktokens
+ sh ${.CURDIR}/mktokens
+
+builtins.h builtins.c: ${.CURDIR}/mkbuiltins ${.CURDIR}/builtins
+ cd ${.CURDIR}; sh mkbuiltins
+
+init.c: mkinit ${SRCS}
+ ./mkinit '${CC} -c ${CFLAGS} init.c' ${.ALLSRC}
+
+mkinit: ${.CURDIR}/mkinit.c
+ ${CC} ${CFLAGS} ${.CURDIR}/mkinit.c -o $@
+
+nodes.c nodes.h: mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
+ ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
+
+mknodes: ${.CURDIR}/mknodes.c
+ ${CC} ${CFLAGS} ${.CURDIR}/mknodes.c -o $@
+
+signames.c signames.h: mksignames
+ ./mksignames
+
+mksignames: ${.CURDIR}/mksignames.c
+ ${CC} ${CFLAGS} ${.CURDIR}/mksignames.c -o $@
+
+syntax.c syntax.h: mksyntax
+ ./mksyntax
+
+mksyntax: ${.CURDIR}/mksyntax.c ${.CURDIR}/parser.h
+ ${CC} ${CFLAGS} ${.CURDIR}/mksyntax.c -o $@
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud