1 # @(#)Makefile 8.4 (Berkeley) 5/5/95
6 CONFS= dot.profile profile
7 CONFSDIR_dot.profile= /root
8 CONFSNAME_dot.profile= .profile
12 SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
14 histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
15 mystring.c options.c output.c parser.c printf.c redir.c show.c \
17 GENSRCS= builtins.c nodes.c syntax.c
18 GENHDRS= builtins.h nodes.h syntax.h token.h
19 SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
21 # MLINKS for Shell built in commands for which there are no userland
22 # utilities of the same name are handled with the associated manpage,
23 # builtin.1 in share/man/man1/.
27 CFLAGS+=-DSHELL -I. -I${.CURDIR}
29 # 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 build-tools: mknodes mksyntax
43 .ORDER: builtins.c builtins.h
45 builtins.c builtins.h: mkbuiltins builtins.def
46 sh ${.CURDIR}/mkbuiltins ${.CURDIR}
48 mknodes mksyntax: ${BUILD_TOOLS_META}
50 .ORDER: nodes.c nodes.h
52 nodes.c nodes.h: mknodes nodetypes nodes.c.pat
53 ${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
55 .ORDER: syntax.c syntax.h
57 syntax.c syntax.h: mksyntax
58 ${BTOOLSPATH:U.}/mksyntax
61 sh ${.CURDIR}/mktokens
64 SUBDIR.${MK_TESTS}+= tests
67 rm -f ${DESTDIR}/.profile
70 ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
72 .include <bsd.prog.mk>