Makefile revision 16663
11556Srgrimes# @(#)Makefile 8.1 (Berkeley) 6/8/93 216663Sjkh# $Id: Makefile,v 1.11 1996/06/02 17:06:39 phk Exp $ 31556Srgrimes 41556SrgrimesPROG= sh 516070SphkSRCS= 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 916070SphkOBJS+= 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 \ 2016070Sphk y.tab.h 211556Srgrimes 221556Srgrimes.depend parser.o: token.def 231556Srgrimestoken.def: mktokens 241556Srgrimes sh ${.CURDIR}/mktokens 251556Srgrimes 2613882Sjoerg${.CURDIR}/builtins: 2713882Sjoerg # just override the default rule 2813882Sjoerg 291556Srgrimesbuiltins.h builtins.c: ${.CURDIR}/mkbuiltins ${.CURDIR}/builtins 3016663Sjkh cd ${.CURDIR} && env OBJDIR=${.OBJDIR} sh mkbuiltins 311556Srgrimes 321556Srgrimesinit.c: mkinit ${SRCS} 331633Srgrimes ./mkinit '${CC} -c ${CFLAGS} ${LDFLAGS} init.c' ${.ALLSRC} 342180Sbde touch ${.TARGET} 351556Srgrimes 361556Srgrimesmkinit: ${.CURDIR}/mkinit.c 371625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mkinit.c -o $@ 381556Srgrimes 391556Srgrimesnodes.c nodes.h: mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 401556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 411556Srgrimes 421556Srgrimesmknodes: ${.CURDIR}/mknodes.c 431625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mknodes.c -o $@ 441556Srgrimes 451556Srgrimessignames.c signames.h: mksignames 461556Srgrimes ./mksignames 471556Srgrimes 481556Srgrimesmksignames: ${.CURDIR}/mksignames.c 491625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mksignames.c -o $@ 501556Srgrimes 511556Srgrimessyntax.c syntax.h: mksyntax 521556Srgrimes ./mksyntax 531556Srgrimes 541556Srgrimesmksyntax: ${.CURDIR}/mksyntax.c ${.CURDIR}/parser.h 551625Srgrimes ${CC} ${CFLAGS} ${LDFLAGS} ${.CURDIR}/mksyntax.c -o $@ 561556Srgrimes 571556Srgrimes.include <bsd.prog.mk> 58