Makefile revision 17987
1126250Sbms# @(#)Makefile 8.4 (Berkeley) 5/5/95 250476Speter# $Id: Makefile,v 1.12 1996/06/24 04:22:21 jkh Exp $ 346303Smarkm 418316SwollmanPROG= sh 518316SwollmanSHSRCS= alias.c cd.c echo.c error.c eval.c exec.c expand.c \ 679530Sru histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \ 718316Swollman mystring.c options.c parser.c printf.c redir.c show.c \ 818316Swollman trap.c output.c var.c 918316Swollman 1018316SwollmanGENSRCS=arith.c arith_lex.c builtins.c init.c nodes.c syntax.c 1168960Sru 1218316SwollmanSRCS= ${GENSRCS} ${SHSRCS} 1318316Swollman 1418316SwollmanDPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 1519880SwollmanLDADD+= -ll -ledit -ltermcap 1646303Smarkm 1768960SruLFLAGS= -8 # 8-bit lex scanner for arithmetic 1819880SwollmanCFLAGS+=-DSHELL -I. -I${.CURDIR} 1946303Smarkm 2018316Swollman.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 2199503Scharnier 2299503ScharnierCLEANFILES+= builtins.h mkinit mknodes mksyntax \ 23114644Smurray nodes.h syntax.h token.h y.tab.h 24114644SmurrayCLEANFILES+= ${GENSRCS} 2518316Swollman 2618316Swollmanbeforedepend: token.h 2718316Swollman 2818316Swollmantoken.h: mktokens 2946303Smarkm sh ${.CURDIR}/mktokens 3046303Smarkm 3118316Swollmanbuiltins.h builtins.c: mkbuiltins builtins.def 3218316Swollman cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 3318316Swollman 3499503Scharnierinit.c: mkinit ${SHSRCS} 3599503Scharnier ./mkinit ${.ALLSRC:S/^mkinit$//} 3699503Scharnier 3718316Swollmannodes.c nodes.h: mknodes nodetypes nodes.c.pat 3818316Swollman ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 3918316Swollman 4037908Scharniersyntax.c syntax.h: mksyntax 4118316Swollman ./mksyntax 4237908Scharnier 4318316Swollmanparser.o: token.h 4418316Swollman 4518316Swollman.include <bsd.prog.mk> 4618316Swollman