Makefile revision 86692
117987Speter# @(#)Makefile 8.4 (Berkeley) 5/5/95 250471Speter# $FreeBSD: head/bin/sh/Makefile 86692 2001-11-20 18:33:59Z knu $ 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 \ 786692Sknu mystring.c options.c output.c parser.c redir.c show.c \ 886505Sknu test.c 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 1351090Ssheldonh# MLINKS for Shell built in commands for which there are no userland 1451090Ssheldonh# utilities of the same name are handled with the associated manpage, 1551090Ssheldonh# builtin.1 in share/man/man1/. 1651090Ssheldonh 1725903SsteveDPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP} 1825221SsteveLDADD+= -ll -ledit -ltermcap 1917987Speter 201556SrgrimesLFLAGS= -8 # 8-bit lex scanner for arithmetic 211556SrgrimesCFLAGS+=-DSHELL -I. -I${.CURDIR} 2217988Speter# for debug: 2317988Speter# CFLAGS+= -g -DDEBUG=2 2417987Speter 2586505Sknu.PATH: ${.CURDIR}/bltin \ 2686692Sknu ${.CURDIR}/../../bin/test 271556Srgrimes 2830113SjkhCLEANFILES+= mkinit mkinit.o mknodes mknodes.o \ 2935783Sbde mksyntax mksyntax.o 3030113SjkhCLEANFILES+= ${GENSRCS} ${GENHDRS} 311556Srgrimes 3237456Sbdebuild-tools: mkinit mknodes mksyntax 3337456Sbde 3430113Sjkh.ORDER: builtins.c builtins.h 3525903Sstevebuiltins.c builtins.h: mkbuiltins builtins.def 3617987Speter cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 371556Srgrimes 3825903Ssteveinit.c: mkinit alias.c eval.c exec.c input.c jobs.c options.c parser.c \ 3925903Ssteve redir.c trap.c var.c 4017987Speter ./mkinit ${.ALLSRC:S/^mkinit$//} 411556Srgrimes 4228729Sbde# XXX this is just to stop the default .c rule being used, so that the 4328729Sbde# intermediate object has a fixed name. 4428729Sbde# XXX we have a default .c rule, but no default .o rule. 4528729Sbde.o: 4628729Sbde ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 4728729Sbdemkinit: mkinit.o 4828729Sbdemknodes: mknodes.o 4928729Sbdemksyntax: mksyntax.o 5028729Sbde 5130113Sjkh.ORDER: nodes.c nodes.h 5217987Speternodes.c nodes.h: mknodes nodetypes nodes.c.pat 531556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 541556Srgrimes 5530113Sjkh.ORDER: syntax.c syntax.h 561556Srgrimessyntax.c syntax.h: mksyntax 571556Srgrimes ./mksyntax 581556Srgrimes 5925903Sstevetoken.h: mktokens 6025903Ssteve sh ${.CURDIR}/mktokens 611556Srgrimes 621556Srgrimes.include <bsd.prog.mk> 63