Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.28
      1  1.28      mrg #	$NetBSD: Makefile,v 1.28 2011/06/22 02:49:41 mrg Exp $
      2  1.26    lukem 
      3  1.26    lukem WARNS=3
      4  1.15   simonb 
      5  1.15   simonb .include <bsd.own.mk>
      6   1.6  mycroft 
      7  1.22    lukem CPPFLAGS+=	-I.
      8   1.1      jtc 
      9   1.1      jtc PROG=	ksh
     10   1.6  mycroft SRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
     11   1.1      jtc 	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
     12   1.2      jtc 	main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
     13   1.1      jtc 	tree.c tty.c var.c version.c vi.c
     14  1.15   simonb DPSRCS=	emacs.out siglist.out
     15  1.15   simonb .if (${MKMAN} != "no")
     16  1.15   simonb DPSRCS+=ksh.1
     17  1.15   simonb .endif
     18   1.7     phil 
     19   1.7     phil # needs tbl for the man page.
     20   1.7     phil USETBL= 
     21  1.13    soren 
     22  1.24      apb # Environment for scripts executed during build.
     23  1.24      apb SCRIPT_ENV= \
     24  1.24      apb 	AWK=${TOOL_AWK:Q} \
     25  1.25      apb 	SED=${TOOL_SED:Q}
     26  1.24      apb 
     27  1.17    lukem CLEANFILES+=	siglist.out siglist.out.tmp
     28   1.1      jtc # two steps to prevent the creation of a bogus siglist.out
     29   1.1      jtc siglist.out: config.h sh.h siglist.in siglist.sh
     30  1.20    lukem 	${_MKTARGET_CREATE}
     31  1.24      apb 	${SCRIPT_ENV} \
     32  1.21    lukem 	${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
     33  1.17    lukem 	    && mv siglist.out.tmp siglist.out
     34   1.1      jtc 
     35   1.1      jtc # two steps to prevent the creation of a bogus emacs.out
     36  1.17    lukem CLEANFILES+=	emacs.out emacs.out.tmp
     37   1.1      jtc emacs.out: emacs.c
     38  1.20    lukem 	${_MKTARGET_CREATE}
     39  1.24      apb 	${SCRIPT_ENV} \
     40  1.21    lukem 	${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
     41  1.17    lukem 	    && mv emacs.out.tmp emacs.out
     42  1.12  hubertf 
     43  1.17    lukem CLEANFILES+=	ksh.1 ksh.1.tmp
     44  1.12  hubertf ksh.1: ksh.Man mkman
     45  1.20    lukem 	${_MKTARGET_CREATE}
     46  1.24      apb 	${SCRIPT_ENV} \
     47  1.21    lukem 	${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
     48  1.17    lukem 	    && mv ksh.1.tmp ksh.1
     49   1.1      jtc 
     50  1.27    joerg CWARNFLAGS.clang+=	-Wno-format-security
     51  1.27    joerg 
     52   1.1      jtc .include <bsd.prog.mk>
     53  1.28      mrg 
     54  1.28      mrg # XXX
     55  1.28      mrg .if ${HAVE_GCC} == 45
     56  1.28      mrg COPTS.eval.c+=	-Wno-error
     57  1.28      mrg .endif
     58