Home | History | Annotate | Line # | Download | only in ksh
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 
      5 CPPFLAGS+=	-DHAVE_CONFIG_H -I.
      6 
      7 PROG=	ksh
      8 SRCS=	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
     12 DPSRCS=	emacs.out siglist.out
     13 .if (${MKMAN} != "no")
     14 DPSRCS+=ksh.1
     15 .endif
     16 
     17 # needs tbl for the man page.
     18 USETBL= 
     19 
     20 CLEANFILES+=	siglist.out emacs.out
     21 
     22 # two steps to prevent the creation of a bogus siglist.out
     23 siglist.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
     28 emacs.out: emacs.c
     29 	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
     30 	mv tmpemacs.out emacs.out
     31 
     32 ksh.1: ksh.Man mkman
     33 	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1
     34 	mv tmpksh.1 ksh.1
     35 
     36 emacs.o:	emacs.out
     37 trap.o:		siglist.out
     38 
     39 .include <bsd.prog.mk>
     40