Deleted Added
full compact
Makefile (50471) Makefile (51090)
1# @(#)Makefile 8.4 (Berkeley) 5/5/95
1# @(#)Makefile 8.4 (Berkeley) 5/5/95
2# $FreeBSD: head/bin/sh/Makefile 50471 1999-08-27 23:15:48Z peter $
2# $FreeBSD: head/bin/sh/Makefile 51090 1999-09-08 15:40:46Z sheldonh $
3
4PROG= sh
5SHSRCS= alias.c arith.y arith_lex.l cd.c echo.c error.c eval.c exec.c expand.c \
6 histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
7 mystring.c options.c output.c parser.c printf.c redir.c show.c \
8 trap.c var.c
9GENSRCS= builtins.c init.c nodes.c syntax.c
10GENHDRS= builtins.h nodes.h syntax.h token.h y.tab.h
11SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} y.tab.h
12
3
4PROG= sh
5SHSRCS= alias.c arith.y arith_lex.l cd.c echo.c error.c eval.c exec.c expand.c \
6 histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
7 mystring.c options.c output.c parser.c printf.c redir.c show.c \
8 trap.c var.c
9GENSRCS= builtins.c init.c nodes.c syntax.c
10GENHDRS= builtins.h nodes.h syntax.h token.h y.tab.h
11SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS} y.tab.h
12
13# MLINKS for Shell built in commands for which there are no userland
14# utilities of the same name are handled with the associated manpage,
15# builtin.1 in share/man/man1/.
16
13DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP}
14LDADD+= -ll -ledit -ltermcap
15
16LFLAGS= -8 # 8-bit lex scanner for arithmetic
17CFLAGS+=-DSHELL -I. -I${.CURDIR}
18# for debug:
19# CFLAGS+= -g -DDEBUG=2
20
21.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
22
23CLEANFILES+= mkinit mkinit.o mknodes mknodes.o \
24 mksyntax mksyntax.o
25CLEANFILES+= ${GENSRCS} ${GENHDRS}
26
27build-tools: mkinit mknodes mksyntax
28
29.ORDER: builtins.c builtins.h
30builtins.c builtins.h: mkbuiltins builtins.def
31 cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR}
32
33init.c: mkinit alias.c eval.c exec.c input.c jobs.c options.c parser.c \
34 redir.c trap.c var.c
35 ./mkinit ${.ALLSRC:S/^mkinit$//}
36
37# XXX this is just to stop the default .c rule being used, so that the
38# intermediate object has a fixed name.
39# XXX we have a default .c rule, but no default .o rule.
40.o:
41 ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
42mkinit: mkinit.o
43mknodes: mknodes.o
44mksyntax: mksyntax.o
45
46.ORDER: nodes.c nodes.h
47nodes.c nodes.h: mknodes nodetypes nodes.c.pat
48 ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
49
50.ORDER: syntax.c syntax.h
51syntax.c syntax.h: mksyntax
52 ./mksyntax
53
54token.h: mktokens
55 sh ${.CURDIR}/mktokens
56
57.include <bsd.prog.mk>
17DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP}
18LDADD+= -ll -ledit -ltermcap
19
20LFLAGS= -8 # 8-bit lex scanner for arithmetic
21CFLAGS+=-DSHELL -I. -I${.CURDIR}
22# for debug:
23# CFLAGS+= -g -DDEBUG=2
24
25.PATH: ${.CURDIR}/bltin ${.CURDIR}/../../usr.bin/printf
26
27CLEANFILES+= mkinit mkinit.o mknodes mknodes.o \
28 mksyntax mksyntax.o
29CLEANFILES+= ${GENSRCS} ${GENHDRS}
30
31build-tools: mkinit mknodes mksyntax
32
33.ORDER: builtins.c builtins.h
34builtins.c builtins.h: mkbuiltins builtins.def
35 cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR}
36
37init.c: mkinit alias.c eval.c exec.c input.c jobs.c options.c parser.c \
38 redir.c trap.c var.c
39 ./mkinit ${.ALLSRC:S/^mkinit$//}
40
41# XXX this is just to stop the default .c rule being used, so that the
42# intermediate object has a fixed name.
43# XXX we have a default .c rule, but no default .o rule.
44.o:
45 ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
46mkinit: mkinit.o
47mknodes: mknodes.o
48mksyntax: mksyntax.o
49
50.ORDER: nodes.c nodes.h
51nodes.c nodes.h: mknodes nodetypes nodes.c.pat
52 ./mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
53
54.ORDER: syntax.c syntax.h
55syntax.c syntax.h: mksyntax
56 ./mksyntax
57
58token.h: mktokens
59 sh ${.CURDIR}/mktokens
60
61.include <bsd.prog.mk>