summaryrefslogtreecommitdiff
path: root/bin/pdksh/Makefile
blob: 81c43a87198e7d34f9c7d784e8a6b70e8c230f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#	$OpenBSD: Makefile,v 1.1 1996/08/14 06:19:12 downsj Exp $

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 \
	main.c misc.c missing.c path.c shf.c sigact.c syn.c table.c trap.c \
	tree.c tty.c var.c version.c vi.c

DEFS=	-DHAVE_CONFIG_H
CFLAGS+=${DEFS} -I. -I${.CURDIR}

CLEANFILES+=	siglist.out emacs.out

.depend trap.o: siglist.out
.depend emacs.o: emacs.out

siglist.out: config.h sh.h siglist.in siglist.sh
	${.CURDIR}/siglist.sh "${CPP} ${CPPFLAGS} ${DEFS} -I${.CURDIR}" \
		< ${.CURDIR}/siglist.in > siglist.out

emacs.out:
	${.CURDIR}/emacs-gen.sh ${.CURDIR}/emacs.c > emacs.out

.include <bsd.prog.mk>