Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 1997/10/22 01:36:36 lukem Exp $
      2 
      3 CPPFLAGS+=	-DHAVE_CONFIG_H -I.
      4 
      5 PROG=	ksh
      6 SRCS=	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 DPSRCS=	emacs.out siglist.out
     11 
     12 # needs tbl for the man page.
     13 USETBL= 
     14 
     15 # two steps to prevent the creation of a bogus siglist.out
     16 siglist.out: config.h sh.h siglist.in siglist.sh
     17 	sh $(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
     18 	mv tmpsiglist.out siglist.out
     19 
     20 # two steps to prevent the creation of a bogus emacs.out
     21 emacs.out: emacs.c
     22 	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
     23 	mv tmpemacs.out emacs.out
     24 
     25 emacs.o:	emacs.out
     26 trap.o:		siglist.out
     27 
     28 .include <bsd.prog.mk>
     29