1 # $NetBSD: Makefile,v 1.11.4.1 1999/12/27 18:27:00 wrstuden Exp $ 2 3 CPPFLAGS+= -DHAVE_CONFIG_H -I. 4 5 PROG= ksh 6 SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 7 eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 8 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \ 9 tree.c tty.c var.c version.c vi.c 10 DPSRCS= emacs.out siglist.out ksh.1 11 12 # needs tbl for the man page. 13 USETBL= 14 15 # two steps to prevent the creation of a bogus siglist.out 16 siglist.out: config.h sh.h siglist.in siglist.sh 17 sh $(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out 18 mv tmpsiglist.out siglist.out 19 20 # two steps to prevent the creation of a bogus emacs.out 21 emacs.out: emacs.c 22 sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out 23 mv tmpemacs.out emacs.out 24 25 ksh.1: ksh.Man mkman 26 sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1 27 mv tmpksh.1 ksh.1 28 29 emacs.o: emacs.out 30 trap.o: siglist.out 31 32 .include <bsd.prog.mk> 33