1997-01-17 00:17:53 +03:00
|
|
|
# $NetBSD: Makefile,v 1.4 1997/01/16 21:17:53 perry Exp $
|
1996-09-22 03:35:13 +04:00
|
|
|
CFLAGS+= -DHAVE_CONFIG_H -I.
|
|
|
|
|
|
|
|
PROG= ksh
|
|
|
|
SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
|
|
|
|
eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
|
1996-10-10 18:17:02 +04:00
|
|
|
main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
|
1996-09-22 03:35:13 +04:00
|
|
|
tree.c tty.c var.c version.c vi.c
|
|
|
|
CLEANFILES+=emacs.out siglist.out
|
|
|
|
|
|
|
|
beforedepend: emacs.out siglist.out
|
|
|
|
|
|
|
|
# two steps to prevent the creation of a bogus siglist.out
|
|
|
|
siglist.out: config.h sh.h siglist.in siglist.sh
|
1997-01-17 00:17:53 +03:00
|
|
|
sh $(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
|
1996-09-22 03:35:13 +04:00
|
|
|
mv tmpsiglist.out siglist.out
|
|
|
|
|
|
|
|
# two steps to prevent the creation of a bogus emacs.out
|
|
|
|
emacs.out: emacs.c
|
1997-01-17 00:17:53 +03:00
|
|
|
sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
|
1996-09-22 03:35:13 +04:00
|
|
|
mv tmpemacs.out emacs.out
|
|
|
|
|
|
|
|
emacs.o: emacs.out
|
|
|
|
trap.o: siglist.out
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|