1 # $NetBSD: Makefile,v 1.12.6.2 2002/02/26 19:50:47 he Exp $ 2 3 .include <bsd.own.mk> 4 5 CPPFLAGS+= -DHAVE_CONFIG_H -I. 6 7 WARNS?= 1 8 PROG= ksh 9 SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 10 eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 11 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \ 12 tree.c tty.c var.c version.c vi.c 13 DPSRCS= emacs.out siglist.out 14 .if (${MKMAN} != "no") 15 DPSRCS+=ksh.1 16 .endif 17 18 # needs tbl for the man page. 19 USETBL= 20 21 CLEANFILES+= siglist.out emacs.out 22 23 # two steps to prevent the creation of a bogus siglist.out 24 siglist.out: config.h sh.h siglist.in siglist.sh 25 sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out 26 mv tmpsiglist.out siglist.out 27 28 # two steps to prevent the creation of a bogus emacs.out 29 emacs.out: emacs.c 30 sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out 31 mv tmpemacs.out emacs.out 32 33 ksh.1: ksh.Man mkman 34 sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1 35 mv tmpksh.1 ksh.1 36 37 emacs.o: emacs.out 38 trap.o: siglist.out 39 40 .include <bsd.prog.mk> 41