1 1.39 rillig # $NetBSD: Makefile,v 1.39 2024/12/05 22:45:20 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.39 rillig LINTFLAGS+= -X 384 # function definition using identifier list 10 1.1 jtc 11 1.1 jtc PROG= ksh 12 1.6 mycroft SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 13 1.1 jtc eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 14 1.34 kamil main.c misc.c path.c shf.c syn.c table.c trap.c tree.c tty.c \ 15 1.34 kamil var.c version.c vi.c 16 1.15 simonb DPSRCS= emacs.out siglist.out 17 1.38 rillig .if ${MKMAN} != "no" 18 1.15 simonb DPSRCS+=ksh.1 19 1.15 simonb .endif 20 1.7 phil 21 1.38 rillig USETBL= # yes, needed for the man page. 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.38 rillig ${HOST_SH} ${.CURDIR}/siglist.sh "${CC} -E ${CPPFLAGS} ${DEFS} \ 34 1.38 rillig -I. -I${.CURDIR}" < ${.CURDIR}/siglist.in > siglist.out.tmp \ 35 1.17 lukem && mv siglist.out.tmp siglist.out 36 1.1 jtc 37 1.1 jtc # two steps to prevent the creation of a bogus emacs.out 38 1.17 lukem CLEANFILES+= emacs.out emacs.out.tmp 39 1.1 jtc emacs.out: emacs.c 40 1.20 lukem ${_MKTARGET_CREATE} 41 1.24 apb ${SCRIPT_ENV} \ 42 1.38 rillig ${HOST_SH} ${.CURDIR}/emacs-gen.sh ${.CURDIR}/emacs.c > emacs.out.tmp \ 43 1.17 lukem && mv emacs.out.tmp emacs.out 44 1.12 hubertf 45 1.17 lukem CLEANFILES+= ksh.1 ksh.1.tmp 46 1.12 hubertf ksh.1: ksh.Man mkman 47 1.20 lukem ${_MKTARGET_CREATE} 48 1.24 apb ${SCRIPT_ENV} \ 49 1.38 rillig ${HOST_SH} ${.CURDIR}/mkman ksh ${.CURDIR}/ksh.Man >ksh.1.tmp \ 50 1.17 lukem && mv ksh.1.tmp ksh.1 51 1.1 jtc 52 1.37 lukem COPTS+= ${CC_WNO_IMPLICIT_FALLTHROUGH} 53 1.35 mrg 54 1.1 jtc .include <bsd.prog.mk> 55