1 # @(#)Makefile 8.4 (Berkeley) 5/5/95
8 ROOT= dot.shrc dot.profile
10 ROOTNAME_dot.shrc= .shrc
11 ROOTNAME_dot.profile= .profile
15 SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
17 histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
18 mystring.c options.c output.c parser.c printf.c redir.c show.c \
20 GENSRCS= builtins.c nodes.c syntax.c
21 GENHDRS= builtins.h nodes.h syntax.h token.h
22 SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
24 # MLINKS for Shell built in commands for which there are no userland
25 # utilities of the same name are handled with the associated manpage,
26 # builtin.1 in share/man/man1/.
30 CFLAGS+=-DSHELL -I. -I${.CURDIR}
32 # DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline
34 .PATH: ${.CURDIR}/bltin \
37 ${SRCTOP}/usr.bin/printf
39 CLEANFILES+= mknodes mksyntax
40 CLEANFILES+= ${GENSRCS} ${GENHDRS}
42 .if ${MACHINE} == "host" || ${MK_DIRDEPS_BUILD} == "no"
43 build-tools: mknodes mksyntax
45 DEPENDOBJS+= mknodes mksyntax
46 mknodes mksyntax: ${BUILD_TOOLS_META}
47 builtins.c builtins.h: mkbuiltins
48 syntax.c syntax.h: mksyntax
49 nodes.c nodes.h: mknodes
52 .ORDER: builtins.c builtins.h
54 builtins.c builtins.h: builtins.def
55 sh ${.CURDIR}/mkbuiltins ${.CURDIR}
58 .ORDER: nodes.c nodes.h
60 nodes.c nodes.h: nodetypes nodes.c.pat
61 ${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
63 .ORDER: syntax.c syntax.h
66 ${BTOOLSPATH:U.}/mksyntax
69 sh ${.CURDIR}/mktokens
72 SUBDIR.${MK_TESTS}+= tests
75 rm -f ${DESTDIR}/.profile
79 ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
81 .include <bsd.prog.mk>