Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 1997/01/16 21:17:53 perry 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 	sh $(.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 	sh $(.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