64-bit VFS_LSEEK_OFF
[minix3.git] / bin / ksh / Makefile
blobb91e23e50df7469b40a384ff34f43eb0a80c050f
1 # $NetBSD: Makefile,v 1.30 2011/10/16 17:12:11 joerg Exp $
3 WARNS=3
5 .include <bsd.own.mk>
7 CPPFLAGS+= -I.
9 PROG= ksh
10 SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
11 eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
12 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
13 tree.c tty.c var.c version.c vi.c
14 DPSRCS= emacs.out siglist.out
15 .if (${MKMAN} != "no")
16 DPSRCS+=ksh.1
17 .endif
19 # needs tbl for the man page.
20 USETBL=
22 # Environment for scripts executed during build.
23 SCRIPT_ENV= \
24 AWK=${TOOL_AWK:Q} \
25 SED=${TOOL_SED:Q}
27 CLEANFILES+= siglist.out siglist.out.tmp
28 # two steps to prevent the creation of a bogus siglist.out
29 siglist.out: config.h sh.h siglist.in siglist.sh
30 ${_MKTARGET_CREATE}
31 ${SCRIPT_ENV} \
32 ${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
33 && mv siglist.out.tmp siglist.out
35 # two steps to prevent the creation of a bogus emacs.out
36 CLEANFILES+= emacs.out emacs.out.tmp
37 emacs.out: emacs.c
38 ${_MKTARGET_CREATE}
39 ${SCRIPT_ENV} \
40 ${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
41 && mv emacs.out.tmp emacs.out
43 CLEANFILES+= ksh.1 ksh.1.tmp
44 ksh.1: ksh.Man mkman
45 ${_MKTARGET_CREATE}
46 ${SCRIPT_ENV} \
47 ${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
48 && mv ksh.1.tmp ksh.1
50 .include <bsd.prog.mk>