Cross Reference: Makefile
xref: /src/bin/sh/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/bin/sh/
Makefile revision 1.24
1#	$NetBSD: Makefile,v 1.24 1996/10/16 14:23:51 christos 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 init.c nodes.c syntax.c
9SRCS= ${SHSRCS} ${GENSRCS}
10
11LDADD+=	-ll -ledit -ltermcap
12DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
13
14LFLAGS= -8	# 8-bit lex scanner for arithmetic
15
16CFLAGS+=-DSHELL -I. -I${.CURDIR}
17
18.PATH:	${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
19
20CLEANFILES+= builtins.h mkinit mknodes mksyntax \
21	nodes.h syntax.h token.h y.tab.h
22CLEANFILES+= ${GENSRCS}
23
24beforedepend: token.h
25
26token.h: mktokens
27	sh ${.CURDIR}/mktokens
28
29builtins.h builtins.c: mkbuiltins builtins.def
30	cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR}
31
32init.c: mkinit ${SHSRCS}
33	./mkinit ${.ALLSRC:S/^mkinit$//}
34
35nodes.c nodes.h: mknodes nodetypes nodes.c.pat
36	./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
37
38syntax.c syntax.h: mksyntax
39	./mksyntax
40
41parser.o: token.h
42
43.include <bsd.prog.mk>
44
45${OBJS} : nodes.h syntax.h
46

Indexes created Thu Dec 11 15:09:36 GMT 2025