1# @(#)Makefile 8.4 (Berkeley) 5/5/95 2# $Id: Makefile,v 1.13 1996/09/01 10:19:18 peter Exp $ 3 4PROG= sh 5SHSRCS= alias.c cd.c echo.c error.c eval.c exec.c expand.c \ 6 histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \ 7 mystring.c options.c parser.c printf.c redir.c show.c \ 8 trap.c output.c var.c 9 10GENSRCS=arith.c arith_lex.c builtins.c init.c nodes.c syntax.c 11 12SRCS= ${GENSRCS} ${SHSRCS} 13 14DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 15LDADD+= -ll -ledit -ltermcap 16 17LFLAGS= -8 # 8-bit lex scanner for arithmetic 18CFLAGS+=-DSHELL -I. -I${.CURDIR} 19# for debug: 20# CFLAGS+= -g -DDEBUG=2 21 22.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 23 24CLEANFILES+= builtins.h mkinit mknodes mksyntax \ 25 nodes.h syntax.h token.h y.tab.h 26CLEANFILES+= ${GENSRCS} 27 28beforedepend: token.h 29 30token.h: mktokens 31 sh ${.CURDIR}/mktokens 32 33builtins.h builtins.c: mkbuiltins builtins.def 34 cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 35 36init.c: mkinit ${SHSRCS} 37 ./mkinit ${.ALLSRC:S/^mkinit$//} 38 39nodes.c nodes.h: mknodes nodetypes nodes.c.pat 40 ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 41 42syntax.c syntax.h: mksyntax 43 ./mksyntax 44 45parser.o: token.h 46 47.include <bsd.prog.mk> 48