Makefile revision 17987
117987Speter# @(#)Makefile 8.4 (Berkeley) 5/5/95 217987Speter# $Id: Makefile,v 1.12 1996/06/24 04:22:21 jkh Exp $ 31556Srgrimes 41556SrgrimesPROG= sh 517987SpeterSHSRCS= alias.c cd.c echo.c error.c eval.c exec.c expand.c \ 61556Srgrimes histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \ 717987Speter mystring.c options.c parser.c printf.c redir.c show.c \ 817987Speter trap.c output.c var.c 917987Speter 1017987SpeterGENSRCS=arith.c arith_lex.c builtins.c init.c nodes.c syntax.c 1117987Speter 1217987SpeterSRCS= ${GENSRCS} ${SHSRCS} 1317987Speter 1417987SpeterDPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 1517987SpeterLDADD+= -ll -ledit -ltermcap 1617987Speter 171556SrgrimesLFLAGS= -8 # 8-bit lex scanner for arithmetic 181556SrgrimesCFLAGS+=-DSHELL -I. -I${.CURDIR} 1917987Speter 201556Srgrimes.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 211556Srgrimes 2217987SpeterCLEANFILES+= builtins.h mkinit mknodes mksyntax \ 2317987Speter nodes.h syntax.h token.h y.tab.h 2417987SpeterCLEANFILES+= ${GENSRCS} 251556Srgrimes 2617987Speterbeforedepend: token.h 2713882Sjoerg 2817987Spetertoken.h: mktokens 2917987Speter sh ${.CURDIR}/mktokens 301556Srgrimes 3117987Speterbuiltins.h builtins.c: mkbuiltins builtins.def 3217987Speter cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 331556Srgrimes 3417987Speterinit.c: mkinit ${SHSRCS} 3517987Speter ./mkinit ${.ALLSRC:S/^mkinit$//} 361556Srgrimes 3717987Speternodes.c nodes.h: mknodes nodetypes nodes.c.pat 381556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 391556Srgrimes 401556Srgrimessyntax.c syntax.h: mksyntax 411556Srgrimes ./mksyntax 421556Srgrimes 4317987Speterparser.o: token.h 441556Srgrimes 451556Srgrimes.include <bsd.prog.mk> 46