1 # $NetBSD: Makefile,v 1.5 1997/05/09 07:50:03 mycroft Exp $ 2 CFLAGS+= -DHAVE_CONFIG_H -I. 3 4 PROG= ksh 5 SRCS= emacs.out siglist.out \ 6 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 CLEANFILES+=emacs.out siglist.out 11 12 # two steps to prevent the creation of a bogus siglist.out 13 siglist.out: config.h sh.h siglist.in siglist.sh 14 sh $(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out 15 mv tmpsiglist.out siglist.out 16 17 # two steps to prevent the creation of a bogus emacs.out 18 emacs.out: emacs.c 19 sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out 20 mv tmpemacs.out emacs.out 21 22 .include <bsd.prog.mk> 23