Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.38
      1  1.38    rillig #	$NetBSD: Makefile,v 1.38 2024/12/05 22:40:02 rillig Exp $
      2  1.26     lukem 
      3  1.38    rillig 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.38    rillig .if ${MKMAN} != "no"
     17  1.15    simonb DPSRCS+=ksh.1
     18  1.15    simonb .endif
     19   1.7      phil 
     20  1.38    rillig USETBL=		# yes, needed for the man page.
     21  1.13     soren 
     22  1.24       apb # Environment for scripts executed during build.
     23  1.24       apb SCRIPT_ENV= \
     24  1.33  christos 	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.38    rillig 	${HOST_SH} ${.CURDIR}/siglist.sh "${CC} -E ${CPPFLAGS} ${DEFS} \
     33  1.38    rillig 		-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.38    rillig 	${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.38    rillig 	${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.37     lukem COPTS+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
     52  1.35       mrg 
     53   1.1       jtc .include <bsd.prog.mk>
     54