Makefile revision 17988
117987Speter# @(#)Makefile 8.4 (Berkeley) 5/5/95 217988Speter# $Id: Makefile,v 1.13 1996/09/01 10:19:18 peter 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} 1917988Speter# for debug: 2017988Speter# CFLAGS+= -g -DDEBUG=2 2117987Speter 221556Srgrimes.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 231556Srgrimes 2417987SpeterCLEANFILES+= builtins.h mkinit mknodes mksyntax \ 2517987Speter nodes.h syntax.h token.h y.tab.h 2617987SpeterCLEANFILES+= ${GENSRCS} 271556Srgrimes 2817987Speterbeforedepend: token.h 2913882Sjoerg 3017987Spetertoken.h: mktokens 3117987Speter sh ${.CURDIR}/mktokens 321556Srgrimes 3317987Speterbuiltins.h builtins.c: mkbuiltins builtins.def 3417987Speter cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 351556Srgrimes 3617987Speterinit.c: mkinit ${SHSRCS} 3717987Speter ./mkinit ${.ALLSRC:S/^mkinit$//} 381556Srgrimes 3917987Speternodes.c nodes.h: mknodes nodetypes nodes.c.pat 401556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 411556Srgrimes 421556Srgrimessyntax.c syntax.h: mksyntax 431556Srgrimes ./mksyntax 441556Srgrimes 4517987Speterparser.o: token.h 461556Srgrimes 471556Srgrimes.include <bsd.prog.mk> 48