Makefile revision 17987
1# @(#)Makefile 8.4 (Berkeley) 5/5/95 2# $Id: Makefile,v 1.12 1996/06/24 04:22:21 jkh 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 20.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 21 22CLEANFILES+= builtins.h mkinit mknodes mksyntax \ 23 nodes.h syntax.h token.h y.tab.h 24CLEANFILES+= ${GENSRCS} 25 26beforedepend: token.h 27 28token.h: mktokens 29 sh ${.CURDIR}/mktokens 30 31builtins.h builtins.c: mkbuiltins builtins.def 32 cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 33 34init.c: mkinit ${SHSRCS} 35 ./mkinit ${.ALLSRC:S/^mkinit$//} 36 37nodes.c nodes.h: mknodes nodetypes nodes.c.pat 38 ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 39 40syntax.c syntax.h: mksyntax 41 ./mksyntax 42 43parser.o: token.h 44 45.include <bsd.prog.mk> 46