Makefile revision 1.25
1# $NetBSD: Makefile,v 1.25 1996/10/22 13:22:19 cgd Exp $ 2# @(#)Makefile 8.4 (Berkeley) 5/5/95 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 redir.c show.c trap.c output.c var.c 8GENSRCS= arith.c arith_lex.c builtins.c init.c nodes.c syntax.c 9SRCS= ${SHSRCS} ${GENSRCS} 10 11LDADD+= -ll -ledit -ltermcap 12DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 13 14LFLAGS= -8 # 8-bit lex scanner for arithmetic 15 16CFLAGS+=-DSHELL -I. -I${.CURDIR} 17 18.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 19 20CLEANFILES+= builtins.h mkinit mknodes mksyntax \ 21 nodes.h syntax.h token.h y.tab.h 22CLEANFILES+= ${GENSRCS} 23 24beforedepend: token.h 25 26token.h: mktokens 27 sh ${.CURDIR}/mktokens 28 29builtins.h builtins.c: mkbuiltins builtins.def 30 cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 31 32init.c: mkinit ${SHSRCS} 33 ./mkinit ${.ALLSRC:S/^mkinit$//} 34 35nodes.c nodes.h: mknodes nodetypes nodes.c.pat 36 ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 37 38syntax.c syntax.h: mksyntax 39 ./mksyntax 40 41parser.o: token.h 42 43.include <bsd.prog.mk> 44 45${OBJS}: builtins.h nodes.h syntax.h 46