Makefile revision 25221
117987Speter# @(#)Makefile 8.4 (Berkeley) 5/5/95 225221Ssteve# $Id: Makefile,v 1.17 1997/02/22 13:58:19 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 \ 725221Ssteve mystring.c options.c output.c parser.c printf.c redir.c show.c \ 825221Ssteve trap.c var.c 925221SsteveGENSRCS= arith.c arith_lex.c builtins.c init.c nodes.c syntax.c 1025221SsteveSRCS= ${SHSRCS} ${GENSRCS} 1117987Speter 1225221SsteveLDADD+= -ll -ledit -ltermcap 1317987SpeterDPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 1417987Speter 151556SrgrimesLFLAGS= -8 # 8-bit lex scanner for arithmetic 161556SrgrimesCFLAGS+=-DSHELL -I. -I${.CURDIR} 1717988Speter# for debug: 1817988Speter# CFLAGS+= -g -DDEBUG=2 1917987Speter 201556Srgrimes.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 211556Srgrimes 2225221SsteveCLEANFILES+= builtins.h mkinit mkinit.o mknodes mknodes.o \ 2325221Ssteve mksyntax mksyntax.o \ 2425221Ssteve nodes.h syntax.h token.h y.tab.h 2525221SsteveCLEANFILES+= ${GENSRCS} 261556Srgrimes 2717987Speterbeforedepend: token.h 2813882Sjoerg 2925221Sstevetoken.h: mktokens 3025221Ssteve sh ${.CURDIR}/mktokens 3125221Ssteve 3217987Speterbuiltins.h builtins.c: mkbuiltins builtins.def 3317987Speter cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 341556Srgrimes 3517987Speterinit.c: mkinit ${SHSRCS} 3617987Speter ./mkinit ${.ALLSRC:S/^mkinit$//} 371556Srgrimes 3817987Speternodes.c nodes.h: mknodes nodetypes nodes.c.pat 391556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 401556Srgrimes 411556Srgrimessyntax.c syntax.h: mksyntax 421556Srgrimes ./mksyntax 431556Srgrimes 4425221Ssteveparser.o: token.h 451556Srgrimes 461556Srgrimes.include <bsd.prog.mk> 4725221Ssteve 4825221Ssteve${OBJS}: builtins.h nodes.h syntax.h 49