Cross Reference: Makefile
xref: /src/bin/ksh/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/bin/ksh/
Makefile revision 1.25
1#	$NetBSD: Makefile,v 1.25 2008/10/25 22:23:55 apb Exp $
2
3.include <bsd.own.mk>
4
5CPPFLAGS+=	-I.
6
7PROG=	ksh
8SRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
9	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
10	main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
11	tree.c tty.c var.c version.c vi.c
12DPSRCS=	emacs.out siglist.out
13.if (${MKMAN} != "no")
14DPSRCS+=ksh.1
15.endif
16
17# needs tbl for the man page.
18USETBL= 
19
20# Environment for scripts executed during build.
21SCRIPT_ENV= \
22	AWK=${TOOL_AWK:Q} \
23	SED=${TOOL_SED:Q}
24
25CLEANFILES+=	siglist.out siglist.out.tmp
26# two steps to prevent the creation of a bogus siglist.out
27siglist.out: config.h sh.h siglist.in siglist.sh
28	${_MKTARGET_CREATE}
29	${SCRIPT_ENV} \
30	${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
31	    && mv siglist.out.tmp siglist.out
32
33# two steps to prevent the creation of a bogus emacs.out
34CLEANFILES+=	emacs.out emacs.out.tmp
35emacs.out: emacs.c
36	${_MKTARGET_CREATE}
37	${SCRIPT_ENV} \
38	${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
39	    && mv emacs.out.tmp emacs.out
40
41CLEANFILES+=	ksh.1 ksh.1.tmp
42ksh.1: ksh.Man mkman
43	${_MKTARGET_CREATE}
44	${SCRIPT_ENV} \
45	${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
46	    && mv ksh.1.tmp ksh.1
47
48.include <bsd.prog.mk>
49

Indexes created Sun Dec 07 03:09:31 GMT 2025