NetBSD/bin/ksh/Makefile

35 lines
1016 B
Makefile
Raw Normal View History

2000-06-26 10:18:07 +04:00
# $NetBSD: Makefile,v 1.14 2000/06/26 06:18:07 kleink Exp $
1997-05-09 17:28:39 +04:00
1997-10-10 23:47:50 +04:00
CPPFLAGS+= -DHAVE_CONFIG_H -I.
1996-09-22 03:35:13 +04:00
PROG= ksh
1997-05-09 17:28:39 +04:00
SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
1996-09-22 03:35:13 +04:00
eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
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
1999-10-20 19:09:58 +04:00
DPSRCS= emacs.out siglist.out ksh.1
1996-09-22 03:35:13 +04:00
# needs tbl for the man page.
USETBL=
2000-06-22 09:42:22 +04:00
CLEANFILES+= siglist.out emacs.out
1996-09-22 03:35:13 +04:00
# two steps to prevent the creation of a bogus siglist.out
siglist.out: config.h sh.h siglist.in siglist.sh
2000-06-26 10:18:07 +04:00
sh $(.CURDIR)/siglist.sh "$(CC) -E $(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
sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
1996-09-22 03:35:13 +04:00
mv tmpemacs.out emacs.out
1999-10-20 19:09:58 +04:00
ksh.1: ksh.Man mkman
sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1
mv tmpksh.1 ksh.1
emacs.o: emacs.out
trap.o: siglist.out
1996-09-22 03:35:13 +04:00
.include <bsd.prog.mk>