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