1 # $NetBSD: Makefile,v 1.84 2009/02/14 08:31:14 lukem Exp $
2 # @(#)Makefile 8.4 (Berkeley) 5/5/95
8 SHSRCS
= alias.c cd.c echo.c error.c eval.c exec.c expand.c \
9 histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
10 mystring.c options.c parser.c redir.c show.c trap.c output.c var.c \
11 test.c kill.c syntax.c
12 GENSRCS
=arith.c arith_lex.c builtins.c init.c nodes.c
13 GENHDRS
=arith.h builtins.h nodes.h token.h
14 SRCS
= ${SHSRCS} ${GENSRCS}
18 LDADD
+= -ll
-ledit
-ltermcap
19 DPADD
+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP}
21 LFLAGS
= -8 # 8-bit lex scanner for arithmetic
24 # Environment for scripts executed during build.
29 # The .depend file can get references to these temporary files
30 .OPTIONAL
: lex.yy.c y.tab.c
37 CPPFLAGS
+=-DSHELL
-I.
-I
${.CURDIR
} -DYY_NO_INPUT
38 #XXX: For testing only.
40 #CFLAGS+=-funsigned-char
41 #TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char" -funsigned-char
49 .PATH
: ${.CURDIR
}/bltin
${NETBSDSRCDIR}/bin
/test \
50 ${NETBSDSRCDIR}/usr.bin
/printf \
51 ${NETBSDSRCDIR}/bin
/kill
53 CLEANFILES
+= ${GENSRCS} ${GENHDRS} y.tab.h
58 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC
}
60 builtins.h
: builtins.c
63 builtins.c
: mkbuiltins
shell.h builtins.def
65 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC
} ${.OBJDIR
}
68 init.c
: mkinit.sh
${SHSRCS}
70 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC
}
74 nodes.c
: mknodes.sh nodetypes nodes.c.pat
76 ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC
} ${.OBJDIR
}
79 .if
${USETOOLS} == "yes"
80 COMPATOBJDIR
!= cd
${NETBSDSRCDIR}/tools
/compat
&& ${PRINTOBJDIR}
81 NBCOMPATLIB
= -L
${COMPATOBJDIR} -lnbcompat
84 .
include <bsd.prog.mk
>