Makefile revision 1.16
1# $NetBSD: Makefile,v 1.16 2001/11/03 13:39:25 lukem Exp $ 2 3.include <bsd.own.mk> 4 5CPPFLAGS+= -DHAVE_CONFIG_H -I. 6 7WARNS?= 1 8PROG= ksh 9SRCS= 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 13DPSRCS= emacs.out siglist.out 14.if (${MKMAN} != "no") 15DPSRCS+=ksh.1 16.endif 17 18# needs tbl for the man page. 19USETBL= 20 21CLEANFILES+= siglist.out emacs.out 22 23# two steps to prevent the creation of a bogus siglist.out 24siglist.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 29emacs.out: emacs.c 30 sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out 31 mv tmpemacs.out emacs.out 32 33ksh.1: ksh.Man mkman 34 sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1 35 mv tmpksh.1 ksh.1 36 37emacs.o: emacs.out 38trap.o: siglist.out 39 40.include <bsd.prog.mk> 41