1 # $NetBSD: Makefile,v 1.31 2015/01/29 20:46:31 joerg Exp $
4 CWARNFLAGS.clang
+= -Wno-error
=cast-qual
11 SRCS
= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
12 eval.c exec.c expr.c history.c io.c jobs.c
lex.c mail.c \
13 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
14 tree.c tty.c var.c version.c vi.c
15 DPSRCS
= emacs.out siglist.out
16 .if
(${MKMAN} != "no")
20 # needs tbl for the man page.
23 # Environment for scripts executed during build.
28 CLEANFILES
+= siglist.out siglist.out.tmp
29 # two steps to prevent the creation of a bogus siglist.out
30 siglist.out
: config.h sh.h siglist.in siglist.sh
33 ${HOST_SH} $(.CURDIR
)/siglist.sh
"$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR
)/siglist.in
> siglist.out.tmp \
34 && mv siglist.out.tmp siglist.out
36 # two steps to prevent the creation of a bogus emacs.out
37 CLEANFILES
+= emacs.out emacs.out.tmp
41 ${HOST_SH} $(.CURDIR
)/emacs-gen.sh
$(.CURDIR
)/emacs.c
> emacs.out.tmp \
42 && mv emacs.out.tmp emacs.out
44 CLEANFILES
+= ksh
.1 ksh
.1.tmp
48 ${HOST_SH} $(.CURDIR
)/mkman ksh
$(.CURDIR
)/ksh.Man
>ksh
.1.tmp \
51 .
include <bsd.prog.mk
>