Makefile revision 35783
117987Speter# @(#)Makefile 8.4 (Berkeley) 5/5/95 235783Sbde# $Id: Makefile,v 1.26 1998/05/05 07:36:55 bde Exp $ 31556Srgrimes 41556SrgrimesPROG= sh 535783SbdeSHSRCS= alias.c arith.y arith_lex.l 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 \ 725221Ssteve mystring.c options.c output.c parser.c printf.c redir.c show.c \ 825221Ssteve trap.c var.c 935783SbdeGENSRCS= builtins.c init.c nodes.c syntax.c 1035783SbdeGENHDRS= builtins.h nodes.h syntax.h token.h y.tab.h 1135783SbdeSRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} y.tab.h 1217987Speter 1325903SsteveDPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 1425221SsteveLDADD+= -ll -ledit -ltermcap 1517987Speter 161556SrgrimesLFLAGS= -8 # 8-bit lex scanner for arithmetic 171556SrgrimesCFLAGS+=-DSHELL -I. -I${.CURDIR} 1817988Speter# for debug: 1917988Speter# CFLAGS+= -g -DDEBUG=2 2017987Speter 211556Srgrimes.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf 221556Srgrimes 2330113SjkhCLEANFILES+= mkinit mkinit.o mknodes mknodes.o \ 2435783Sbde mksyntax mksyntax.o 2530113SjkhCLEANFILES+= ${GENSRCS} ${GENHDRS} 261556Srgrimes 2730113Sjkh.ORDER: builtins.c builtins.h 2825903Sstevebuiltins.c builtins.h: mkbuiltins builtins.def 2917987Speter cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 301556Srgrimes 3125903Ssteveinit.c: mkinit alias.c eval.c exec.c input.c jobs.c options.c parser.c \ 3225903Ssteve redir.c trap.c var.c 3317987Speter ./mkinit ${.ALLSRC:S/^mkinit$//} 341556Srgrimes 3528729Sbde# XXX this is just to stop the default .c rule being used, so that the 3628729Sbde# intermediate object has a fixed name. 3728729Sbde# XXX we have a default .c rule, but no default .o rule. 3828729Sbde.o: 3928729Sbde ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 4028729Sbdemkinit: mkinit.o 4128729Sbdemkinit.o: mkinit.c # XXX and many headers 4228729Sbdemknodes: mknodes.o 4328729Sbdemknodes.o: mknodes.c # XXX and many headers 4428729Sbdemksyntax: mksyntax.o 4528729Sbdemksyntax.o: mksyntax.c # XXX and many headers 4628729Sbde 4730113Sjkh.ORDER: nodes.c nodes.h 4817987Speternodes.c nodes.h: mknodes nodetypes nodes.c.pat 491556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 501556Srgrimes 5130113Sjkh.ORDER: syntax.c syntax.h 521556Srgrimessyntax.c syntax.h: mksyntax 531556Srgrimes ./mksyntax 541556Srgrimes 5525903Sstevetoken.h: mktokens 5625903Ssteve sh ${.CURDIR}/mktokens 571556Srgrimes 581556Srgrimes.include <bsd.prog.mk> 59