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

Indexes created Thu Dec 04 17:09:29 GMT 2025