6 ROOT= dot.shrc dot.profile
9 ROOTNAME_dot.shrc= .shrc
10 ROOTNAME_dot.profile= .profile
14 SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
16 histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
17 mystring.c options.c output.c parser.c printf.c redir.c show.c \
19 GENSRCS= builtins.c nodes.c syntax.c
20 GENHDRS= builtins.h nodes.h syntax.h token.h
21 SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
23 # MLINKS for Shell built in commands for which there are no userland
24 # utilities of the same name are handled with the associated manpage,
25 # builtin.1 in share/man/man1/.
29 CFLAGS+=-DSHELL -I. -I${.CURDIR}
31 # DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline
33 .PATH: ${.CURDIR}/bltin \
36 ${SRCTOP}/usr.bin/printf
38 CLEANFILES+= mknodes mksyntax
39 CLEANFILES+= ${GENSRCS} ${GENHDRS}
41 .if ${MACHINE} == "host" || ${MK_DIRDEPS_BUILD} == "no"
42 build-tools: mknodes mksyntax
44 DEPENDOBJS+= mknodes mksyntax
45 mknodes mksyntax: ${BUILD_TOOLS_META}
46 builtins.c builtins.h: mkbuiltins
47 syntax.c syntax.h: mksyntax
48 nodes.c nodes.h: mknodes
51 .ORDER: builtins.c builtins.h
53 builtins.c builtins.h: builtins.def
54 sh ${.CURDIR}/mkbuiltins ${.CURDIR}
57 .ORDER: nodes.c nodes.h
59 nodes.c nodes.h: nodetypes nodes.c.pat
60 ${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
62 .ORDER: syntax.c syntax.h
65 ${BTOOLSPATH:U.}/mksyntax
68 sh ${.CURDIR}/mktokens
71 SUBDIR.${MK_TESTS}+= tests
74 rm -f ${DESTDIR}/.profile
78 ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
80 .include <bsd.prog.mk>