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