Makefile revision 10354
11556Srgrimes# @(#)Makefile 8.1 (Berkeley) 6/8/93 210354Sjoerg# $Id: Makefile,v 1.7 1994/10/02 01:36:03 ache Exp $ 31556Srgrimes 41556SrgrimesPROG= sh 51556SrgrimesSRCS= alias.c builtins.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 \ 71556Srgrimes mystring.c nodes.c options.c parser.c printf.c redir.c show.c \ 81556Srgrimes signames.c syntax.c trap.c output.c var.c 91556SrgrimesOBJS+= init.o arith.o arith_lex.o 103286SacheDPADD= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 113286SacheLDADD= -ll -ledit -ltermcap 121556SrgrimesLFLAGS= -8 # 8-bit lex scanner for arithmetic 131556SrgrimesCFLAGS+=-DSHELL -I. -I${.CURDIR} 1410354Sjoerg# for debugging: 1510354Sjoerg#CFLAGS+=-g -DDEBUG=2 161556Srgrimes.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 171556SrgrimesCLEANFILES+=\ 181556Srgrimes builtins.c builtins.h init.c mkinit mknodes mksignames mksyntax \ 191556Srgrimes nodes.c nodes.h signames.c signames.h syntax.c syntax.h token.def \ 201556Srgrimes y.tab.h 211556Srgrimes 221556Srgrimes.depend parser.o: token.def 231556Srgrimestoken.def: mktokens 241556Srgrimes sh ${.CURDIR}/mktokens 251556Srgrimes 261556Srgrimesbuiltins.h builtins.c: ${.CURDIR}/mkbuiltins ${.CURDIR}/builtins 271556Srgrimes cd ${.CURDIR}; sh mkbuiltins 281556Srgrimes 291556Srgrimesinit.c: mkinit ${SRCS} 301633Srgrimes ./mkinit '${CC} -c ${CFLAGS} ${LDFLAGS} init.c' ${.ALLSRC} 312180Sbde touch ${.TARGET} 321556Srgrimes 331556Srgrimesmkinit: ${.CURDIR}/mkinit.c 341625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mkinit.c -o $@ 351556Srgrimes 361556Srgrimesnodes.c nodes.h: mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 371556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 381556Srgrimes 391556Srgrimesmknodes: ${.CURDIR}/mknodes.c 401625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mknodes.c -o $@ 411556Srgrimes 421556Srgrimessignames.c signames.h: mksignames 431556Srgrimes ./mksignames 441556Srgrimes 451556Srgrimesmksignames: ${.CURDIR}/mksignames.c 461625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mksignames.c -o $@ 471556Srgrimes 481556Srgrimessyntax.c syntax.h: mksyntax 491556Srgrimes ./mksyntax 501556Srgrimes 511556Srgrimesmksyntax: ${.CURDIR}/mksyntax.c ${.CURDIR}/parser.h 521625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mksyntax.c -o $@ 531556Srgrimes 541556Srgrimes.include <bsd.prog.mk> 55