1# @(#)Makefile 8.4 (Berkeley) 5/5/95 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6CONFS= profile 7PACKAGE=runtime 8PROG= sh 9INSTALLFLAGS= -S 10SHSRCS= 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 15GENSRCS= builtins.c nodes.c syntax.c 16GENHDRS= builtins.h nodes.h syntax.h token.h 17SRCS= ${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 23LIBADD= edit 24 25CFLAGS+=-DSHELL -I. -I${.CURDIR} 26# for debug: 27# DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline 28WARNS?= 2 29WFORMAT=0 30 31.PATH: ${.CURDIR}/bltin \ 32 ${.CURDIR:H}/kill \ 33 ${.CURDIR:H}/test \ 34 ${SRCTOP}/usr.bin/printf 35 36CLEANFILES+= mknodes mksyntax 37CLEANFILES+= ${GENSRCS} ${GENHDRS} 38 39build-tools: mknodes mksyntax 40 41.ORDER: builtins.c builtins.h 42builtins.h: .NOMETA 43builtins.c builtins.h: mkbuiltins builtins.def 44 sh ${.CURDIR}/mkbuiltins ${.CURDIR} 45 46mknodes mksyntax: ${BUILD_TOOLS_META} 47 48.ORDER: nodes.c nodes.h 49nodes.h: .NOMETA 50nodes.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 54syntax.h: .NOMETA 55syntax.c syntax.h: mksyntax 56 ${BTOOLSPATH:U.}/mksyntax 57 58token.h: mktokens 59 sh ${.CURDIR}/mktokens 60 61HAS_TESTS= 62SUBDIR.${MK_TESTS}+= tests 63 64.include <bsd.prog.mk> 65