Makefile revision 86505
117987Speter# @(#)Makefile 8.4 (Berkeley) 5/5/95 250471Speter# $FreeBSD: head/bin/sh/Makefile 86505 2001-11-17 19:10:11Z 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 \ 725221Ssteve mystring.c options.c output.c parser.c printf.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 \ 2686505Sknu ${.CURDIR}/../../bin/test \ 2786505Sknu ${.CURDIR}/../../usr.bin/printf 281556Srgrimes 2930113SjkhCLEANFILES+= mkinit mkinit.o mknodes mknodes.o \ 3035783Sbde mksyntax mksyntax.o 3130113SjkhCLEANFILES+= ${GENSRCS} ${GENHDRS} 321556Srgrimes 3337456Sbdebuild-tools: mkinit mknodes mksyntax 3437456Sbde 3530113Sjkh.ORDER: builtins.c builtins.h 3625903Sstevebuiltins.c builtins.h: mkbuiltins builtins.def 3717987Speter cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR} 381556Srgrimes 3925903Ssteveinit.c: mkinit alias.c eval.c exec.c input.c jobs.c options.c parser.c \ 4025903Ssteve redir.c trap.c var.c 4117987Speter ./mkinit ${.ALLSRC:S/^mkinit$//} 421556Srgrimes 4328729Sbde# XXX this is just to stop the default .c rule being used, so that the 4428729Sbde# intermediate object has a fixed name. 4528729Sbde# XXX we have a default .c rule, but no default .o rule. 4628729Sbde.o: 4728729Sbde ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 4828729Sbdemkinit: mkinit.o 4928729Sbdemknodes: mknodes.o 5028729Sbdemksyntax: mksyntax.o 5128729Sbde 5230113Sjkh.ORDER: nodes.c nodes.h 5317987Speternodes.c nodes.h: mknodes nodetypes nodes.c.pat 541556Srgrimes ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 551556Srgrimes 5630113Sjkh.ORDER: syntax.c syntax.h 571556Srgrimessyntax.c syntax.h: mksyntax 581556Srgrimes ./mksyntax 591556Srgrimes 6025903Sstevetoken.h: mktokens 6125903Ssteve sh ${.CURDIR}/mktokens 621556Srgrimes 631556Srgrimes.include <bsd.prog.mk> 64