1c6063d0dSWarner Losh.include <src.opts.mk> 213de33a5SJulio Merino 360315f8fSEdward Tomasz NapieralaCONFGROUPS= ETC ROOT 460315f8fSEdward Tomasz NapieralaETC= profile 560315f8fSEdward Tomasz NapieralaROOT= dot.shrc dot.profile 660315f8fSEdward Tomasz NapieralaROOTDIR= /root 7*a6ed8c95SThomas EberhardtROOTDIR_MODE= 0750 860315f8fSEdward Tomasz NapieralaROOTNAME_dot.shrc= .shrc 960315f8fSEdward Tomasz NapieralaROOTNAME_dot.profile= .profile 10ac2875faSGlen BarberPACKAGE=runtime 114b88c807SRodney W. GrimesPROG= sh 124995f067SRuslan ErmilovINSTALLFLAGS= -S 136262b84eSJilles TjoelkerSHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \ 146262b84eSJilles Tjoelker exec.c expand.c \ 150a62a9caSJilles Tjoelker histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \ 169897c45fSJilles Tjoelker mystring.c options.c output.c parser.c printf.c redir.c show.c \ 17d90c5c4aSAkinori MUSHA test.c trap.c var.c 18338b821bSJilles TjoelkerGENSRCS= builtins.c nodes.c syntax.c 19d0123622SRuslan ErmilovGENHDRS= builtins.h nodes.h syntax.h token.h 206262b84eSJilles TjoelkerSRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} 21aa9caaf6SPeter Wemm 22c644db6aSSheldon Hearn# MLINKS for Shell built in commands for which there are no userland 23c644db6aSSheldon Hearn# utilities of the same name are handled with the associated manpage, 24c644db6aSSheldon Hearn# builtin.1 in share/man/man1/. 25c644db6aSSheldon Hearn 2612cd1730SBaptiste DaroussinLIBADD= edit 27aa9caaf6SPeter Wemm 284b88c807SRodney W. GrimesCFLAGS+=-DSHELL -I. -I${.CURDIR} 298a8c5e4eSPeter Wemm# for debug: 3088328642SDavid E. O'Brien# DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline 314b88c807SRodney W. Grimes 32d90c5c4aSAkinori MUSHA.PATH: ${.CURDIR}/bltin \ 33caf42d81SEnji Cooper ${.CURDIR:H}/kill \ 34caf42d81SEnji Cooper ${.CURDIR:H}/test \ 35caf42d81SEnji Cooper ${SRCTOP}/usr.bin/printf 36aa9caaf6SPeter Wemm 37d717a1d4SBryan DreweryCLEANFILES+= mknodes mksyntax 3897fe7f47SJordan K. HubbardCLEANFILES+= ${GENSRCS} ${GENHDRS} 39aa9caaf6SPeter Wemm 408fe4f8f7SSimon J. Gerraty.if ${MACHINE} == "host" || ${MK_DIRDEPS_BUILD} == "no" 41338b821bSJilles Tjoelkerbuild-tools: mknodes mksyntax 423c3472fbSBruce Evans 438fe4f8f7SSimon J. GerratyDEPENDOBJS+= mknodes mksyntax 448fe4f8f7SSimon J. Gerratymknodes mksyntax: ${BUILD_TOOLS_META} 45fcc8d727SSimon J. Gerratybuiltins.c builtins.h: mkbuiltins 46fcc8d727SSimon J. Gerratysyntax.c syntax.h: mksyntax 47fcc8d727SSimon J. Gerratynodes.c nodes.h: mknodes 488fe4f8f7SSimon J. Gerraty.endif 498fe4f8f7SSimon J. Gerraty 5097fe7f47SJordan K. Hubbard.ORDER: builtins.c builtins.h 5192edc966SBryan Drewerybuiltins.h: .NOMETA 52fcc8d727SSimon J. Gerratybuiltins.c builtins.h: builtins.def 53937b0a99SMarcel Moolenaar sh ${.CURDIR}/mkbuiltins ${.CURDIR} 540f9a5351SJoerg Wunsch 5518f368f2SBruce Evans 5697fe7f47SJordan K. Hubbard.ORDER: nodes.c nodes.h 5792edc966SBryan Drewerynodes.h: .NOMETA 58fcc8d727SSimon J. Gerratynodes.c nodes.h: nodetypes nodes.c.pat 5929df9f6bSBryan Drewery ${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 604b88c807SRodney W. Grimes 6197fe7f47SJordan K. Hubbard.ORDER: syntax.c syntax.h 6292edc966SBryan Drewerysyntax.h: .NOMETA 63fcc8d727SSimon J. Gerratysyntax.c syntax.h: 6429df9f6bSBryan Drewery ${BTOOLSPATH:U.}/mksyntax 654b88c807SRodney W. Grimes 66f7a827ccSSteve Pricetoken.h: mktokens 67f7a827ccSSteve Price sh ${.CURDIR}/mktokens 68f7a827ccSSteve Price 698c099357SEnji CooperHAS_TESTS= 708c099357SEnji CooperSUBDIR.${MK_TESTS}+= tests 71f3bf9b7aSDavid E. O'Brien 7294ec7ec7SBrad Davisbeforeinstallconfig: 7394ec7ec7SBrad Davis rm -f ${DESTDIR}/.profile 7494ec7ec7SBrad Davis 751dbb9994SEd MasteLINKMODE=${CONFMODE} 7694ec7ec7SBrad Davisafterinstallconfig: 7794ec7ec7SBrad Davis ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile 7894ec7ec7SBrad Davis 794b88c807SRodney W. Grimes.include <bsd.prog.mk> 80