1 # $NetBSD: Makefile,v 1.3 1997/01/12 19:11:37 tls Exp $ 2 CFLAGS+= -DHAVE_CONFIG_H -I. 3 4 PROG= ksh 5 SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 6 eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 7 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \ 8 tree.c tty.c var.c version.c vi.c 9 CLEANFILES+=emacs.out siglist.out 10 11 beforedepend: emacs.out siglist.out 12 13 # two steps to prevent the creation of a bogus siglist.out 14 siglist.out: config.h sh.h siglist.in siglist.sh 15 $(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out 16 mv tmpsiglist.out siglist.out 17 18 # two steps to prevent the creation of a bogus emacs.out 19 emacs.out: emacs.c 20 $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out 21 mv tmpemacs.out emacs.out 22 23 emacs.o: emacs.out 24 trap.o: siglist.out 25 26 .include <bsd.prog.mk> 27