Cross Reference: Makefile
xref: /src/bin/sh/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/bin/sh/
Makefile revision 1.42
1#	$NetBSD: Makefile,v 1.42 1998/04/13 12:06:48 lukem Exp $
2#	@(#)Makefile	8.4 (Berkeley) 5/5/95
3
4PROG=	sh
5SHSRCS=	alias.c cd.c echo.c error.c eval.c exec.c expand.c \
6	histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
7	mystring.c options.c parser.c redir.c show.c trap.c output.c var.c
8GENSRCS=arith.c arith_lex.c builtins.c builtins.h init.c nodes.c nodes.h \
9	syntax.c syntax.h token.h
10SRCS=	${SHSRCS} ${GENSRCS}
11
12LDADD+=	-ll -ledit -ltermcap
13DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
14
15LFLAGS= -8	# 8-bit lex scanner for arithmetic
16YFLAGS=	-d
17
18CPPFLAGS+=-DSHELL -I. -I${.CURDIR}
19
20.PATH:	${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
21
22CLEANFILES+= mkinit mknodes mksyntax
23CLEANFILES+= mkinit.o mknodes.o mksyntax.o
24CLEANFILES+= ${GENSRCS} y.tab.h
25
26token.h: mktokens
27	sh ${.ALLSRC}
28
29builtins.c builtins.h: mkbuiltins shell.h builtins.def
30	sh ${.ALLSRC} ${.OBJDIR}
31
32init.c: mkinit ${SHSRCS}
33	./${.ALLSRC}
34
35nodes.c nodes.h: mknodes nodetypes nodes.c.pat
36	./${.ALLSRC}
37
38syntax.c syntax.h: mksyntax
39	./${.ALLSRC}
40
41${OBJS}: builtins.h nodes.h syntax.h token.h
42
43.include <bsd.prog.mk>
44

Indexes created Thu Dec 11 09:09:31 GMT 2025