1 # @(#)Makefile 8.4 (Berkeley) 5/5/95
9 SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
11 histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
12 mystring.c options.c output.c parser.c printf.c redir.c show.c \
14 GENSRCS= builtins.c nodes.c syntax.c
15 GENHDRS= builtins.h nodes.h syntax.h token.h
16 SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
18 # MLINKS for Shell built in commands for which there are no userland
19 # utilities of the same name are handled with the associated manpage,
20 # builtin.1 in share/man/man1/.
24 CFLAGS+=-DSHELL -I. -I${.CURDIR}
26 # DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline
30 .PATH: ${.CURDIR}/bltin \
33 ${SRCTOP}/usr.bin/printf
35 CLEANFILES+= mknodes mksyntax
36 CLEANFILES+= ${GENSRCS} ${GENHDRS}
38 build-tools: mknodes mksyntax
40 .ORDER: builtins.c builtins.h
42 builtins.c builtins.h: mkbuiltins builtins.def
43 sh ${.CURDIR}/mkbuiltins ${.CURDIR}
45 mknodes mksyntax: ${BUILD_TOOLS_META}
47 .ORDER: nodes.c nodes.h
49 nodes.c nodes.h: mknodes nodetypes nodes.c.pat
50 ${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
52 .ORDER: syntax.c syntax.h
54 syntax.c syntax.h: mksyntax
55 ${BTOOLSPATH:U.}/mksyntax
58 sh ${.CURDIR}/mktokens
61 SUBDIR.${MK_TESTS}+= tests
63 .include <bsd.prog.mk>