]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - bin/sh/Makefile
Revert parts of r337849 and r337857
[FreeBSD/FreeBSD.git] / bin / sh / Makefile
1 #       @(#)Makefile    8.4 (Berkeley) 5/5/95
2 # $FreeBSD$
3
4 .include <src.opts.mk>
5
6 CONFS=  profile
7 PACKAGE=runtime
8 PROG=   sh
9 INSTALLFLAGS= -S
10 SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
11         exec.c expand.c \
12         histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
13         mystring.c options.c output.c parser.c printf.c redir.c show.c \
14         test.c trap.c var.c
15 GENSRCS= builtins.c nodes.c syntax.c
16 GENHDRS= builtins.h nodes.h syntax.h token.h
17 SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
18
19 # MLINKS for Shell built in commands for which there are no userland
20 # utilities of the same name are handled with the associated manpage,
21 # builtin.1 in share/man/man1/.
22
23 LIBADD= edit
24
25 CFLAGS+=-DSHELL -I. -I${.CURDIR}
26 # for debug:
27 # DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline
28 WARNS?= 2
29 WFORMAT=0
30
31 .PATH:  ${.CURDIR}/bltin \
32         ${.CURDIR:H}/kill \
33         ${.CURDIR:H}/test \
34         ${SRCTOP}/usr.bin/printf
35
36 CLEANFILES+= mknodes mksyntax
37 CLEANFILES+= ${GENSRCS} ${GENHDRS}
38
39 build-tools: mknodes mksyntax
40
41 .ORDER: builtins.c builtins.h
42 builtins.h: .NOMETA
43 builtins.c builtins.h: mkbuiltins builtins.def
44         sh ${.CURDIR}/mkbuiltins ${.CURDIR}
45
46 mknodes mksyntax: ${BUILD_TOOLS_META}
47
48 .ORDER: nodes.c nodes.h
49 nodes.h: .NOMETA
50 nodes.c nodes.h: mknodes nodetypes nodes.c.pat
51         ${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
52
53 .ORDER: syntax.c syntax.h
54 syntax.h: .NOMETA
55 syntax.c syntax.h: mksyntax
56         ${BTOOLSPATH:U.}/mksyntax
57
58 token.h: mktokens
59         sh ${.CURDIR}/mktokens
60
61 HAS_TESTS=
62 SUBDIR.${MK_TESTS}+= tests
63
64 .include <bsd.prog.mk>