Makefile (235927) | Makefile (253650) |
---|---|
1# @(#)Makefile 8.4 (Berkeley) 5/5/95 | 1# @(#)Makefile 8.4 (Berkeley) 5/5/95 |
2# $FreeBSD: head/bin/sh/Makefile 235927 2012-05-24 19:48:15Z marcel $ | 2# $FreeBSD: head/bin/sh/Makefile 253650 2013-07-25 15:08:41Z jilles $ |
3 4PROG= sh 5INSTALLFLAGS= -S 6SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \ 7 exec.c expand.c \ 8 histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \ 9 mystring.c options.c output.c parser.c printf.c redir.c show.c \ 10 test.c trap.c var.c | 3 4PROG= sh 5INSTALLFLAGS= -S 6SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \ 7 exec.c expand.c \ 8 histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \ 9 mystring.c options.c output.c parser.c printf.c redir.c show.c \ 10 test.c trap.c var.c |
11GENSRCS= builtins.c init.c nodes.c syntax.c | 11GENSRCS= builtins.c nodes.c syntax.c |
12GENHDRS= builtins.h nodes.h syntax.h token.h 13SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} 14 15# MLINKS for Shell built in commands for which there are no userland 16# utilities of the same name are handled with the associated manpage, 17# builtin.1 in share/man/man1/. 18 19DPADD= ${LIBEDIT} ${LIBTERMCAP} --- 5 unchanged lines hidden (view full) --- 25WARNS?= 2 26WFORMAT=0 27 28.PATH: ${.CURDIR}/bltin \ 29 ${.CURDIR}/../kill \ 30 ${.CURDIR}/../test \ 31 ${.CURDIR}/../../usr.bin/printf 32 | 12GENHDRS= builtins.h nodes.h syntax.h token.h 13SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} 14 15# MLINKS for Shell built in commands for which there are no userland 16# utilities of the same name are handled with the associated manpage, 17# builtin.1 in share/man/man1/. 18 19DPADD= ${LIBEDIT} ${LIBTERMCAP} --- 5 unchanged lines hidden (view full) --- 25WARNS?= 2 26WFORMAT=0 27 28.PATH: ${.CURDIR}/bltin \ 29 ${.CURDIR}/../kill \ 30 ${.CURDIR}/../test \ 31 ${.CURDIR}/../../usr.bin/printf 32 |
33CLEANFILES+= mkinit mkinit.o mknodes mknodes.o \ | 33CLEANFILES+= mknodes mknodes.o \ |
34 mksyntax mksyntax.o 35CLEANFILES+= ${GENSRCS} ${GENHDRS} 36 | 34 mksyntax mksyntax.o 35CLEANFILES+= ${GENSRCS} ${GENHDRS} 36 |
37build-tools: mkinit mknodes mksyntax | 37build-tools: mknodes mksyntax |
38 39.ORDER: builtins.c builtins.h 40builtins.c builtins.h: mkbuiltins builtins.def 41 sh ${.CURDIR}/mkbuiltins ${.CURDIR} 42 | 38 39.ORDER: builtins.c builtins.h 40builtins.c builtins.h: mkbuiltins builtins.def 41 sh ${.CURDIR}/mkbuiltins ${.CURDIR} 42 |
43init.c: mkinit alias.c eval.c exec.c input.c jobs.c options.c parser.c \ 44 redir.c trap.c var.c 45 ./mkinit ${.ALLSRC:S/^mkinit$//} 46 | |
47# XXX this is just to stop the default .c rule being used, so that the 48# intermediate object has a fixed name. 49# XXX we have a default .c rule, but no default .o rule. 50.o: 51 ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} | 43# XXX this is just to stop the default .c rule being used, so that the 44# intermediate object has a fixed name. 45# XXX we have a default .c rule, but no default .o rule. 46.o: 47 ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} |
52mkinit: mkinit.o | |
53mknodes: mknodes.o 54mksyntax: mksyntax.o 55 56.ORDER: nodes.c nodes.h 57nodes.c nodes.h: mknodes nodetypes nodes.c.pat 58 ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 59 60.ORDER: syntax.c syntax.h 61syntax.c syntax.h: mksyntax 62 ./mksyntax 63 64token.h: mktokens 65 sh ${.CURDIR}/mktokens 66 67regress: 68 cd ${.CURDIR}/../../tools/regression/bin/sh && ${MAKE} SH=${.OBJDIR}/sh 69 70.include <bsd.prog.mk> | 48mknodes: mknodes.o 49mksyntax: mksyntax.o 50 51.ORDER: nodes.c nodes.h 52nodes.c nodes.h: mknodes nodetypes nodes.c.pat 53 ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat 54 55.ORDER: syntax.c syntax.h 56syntax.c syntax.h: mksyntax 57 ./mksyntax 58 59token.h: mktokens 60 sh ${.CURDIR}/mktokens 61 62regress: 63 cd ${.CURDIR}/../../tools/regression/bin/sh && ${MAKE} SH=${.OBJDIR}/sh 64 65.include <bsd.prog.mk> |