Makefile revision 255386
117987Speter# @(#)Makefile 8.4 (Berkeley) 5/5/95 250471Speter# $FreeBSD: head/bin/sh/Makefile 253650 2013-07-25 15:08:41Z jilles $ 31556Srgrimes 41556SrgrimesPROG= sh 5127167SruINSTALLFLAGS= -S 6218466SjillesSHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \ 7218466Sjilles exec.c expand.c \ 8216629Sjilles histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \ 9215520Sjilles mystring.c options.c output.c parser.c printf.c redir.c show.c \ 1086505Sknu test.c trap.c var.c 11253650SjillesGENSRCS= builtins.c nodes.c syntax.c 12124751SruGENHDRS= builtins.h nodes.h syntax.h token.h 13218466SjillesSRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} 1417987Speter 1551090Ssheldonh# MLINKS for Shell built in commands for which there are no userland 1651090Ssheldonh# utilities of the same name are handled with the associated manpage, 17157811Sschweikh# builtin.1 in share/man/man1/. 1851090Ssheldonh 19218466SjillesDPADD= ${LIBEDIT} ${LIBTERMCAP} 20218466SjillesLDADD= -ledit -ltermcap 2117987Speter 221556SrgrimesCFLAGS+=-DSHELL -I. -I${.CURDIR} 2317988Speter# for debug: 24213811Sobrien# DEBUG_FLAGS+= -g -DDEBUG=2 -fno-inline 25173718SjbWARNS?= 2 26114500SobrienWFORMAT=0 2717987Speter 2886505Sknu.PATH: ${.CURDIR}/bltin \ 29216629Sjilles ${.CURDIR}/../kill \ 30215520Sjilles ${.CURDIR}/../test \ 31215520Sjilles ${.CURDIR}/../../usr.bin/printf 321556Srgrimes 33253650SjillesCLEANFILES+= mknodes mknodes.o \ 3435783Sbde mksyntax mksyntax.o 3530113SjkhCLEANFILES+= ${GENSRCS} ${GENHDRS} 361556Srgrimes 37253650Sjillesbuild-tools: mknodes mksyntax 3837456Sbde 3930113Sjkh.ORDER: builtins.c builtins.h 4025903Sstevebuiltins.c builtins.h: mkbuiltins builtins.def 41235927Smarcel sh ${.CURDIR}/mkbuiltins ${.CURDIR} 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} 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 62213738Sobrienregress: 63213738Sobrien cd ${.CURDIR}/../../tools/regression/bin/sh && ${MAKE} SH=${.OBJDIR}/sh 64213738Sobrien 651556Srgrimes.include <bsd.prog.mk> 66