mksh/Makefile

34 lines
1.0 KiB
Makefile
Raw Normal View History

2004-12-10 19:12:32 +01:00
# $MirBSD: src/bin/ksh/Makefile,v 2.1 2004/12/10 18:09:40 tg Exp $
# $OpenBSD: Makefile,v 1.18 2004/02/16 19:07:19 deraadt Exp $
PROG= ksh
SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c chvt.c edit.c \
emacs.c eval.c exec.c expr.c history.c io.c jobs.c lex.c \
2004-05-24 21:06:55 +02:00
main.c misc.c missing.c path.c rnd.c shf.c syn.c table.c \
trap.c tree.c tty.c var.c version.c vi.c
MAN= ksh.1tbl sh.1tbl
CPPFLAGS+= -DHAVE_CONFIG_H -I. -DKSH -DMIRBSD_NATIVE
2004-10-28 13:03:24 +02:00
CFLAGS+= -Wall -Werror -W -pedantic
CLEANFILES+= siglist.out emacs.out
LINKS= ${BINDIR}/ksh ${BINDIR}/rksh
LINKS+= ${BINDIR}/ksh ${BINDIR}/sh
MLINKS= ksh.1 rksh.1 ksh.1 ulimit.1
.depend trap.o: siglist.out
.depend emacs.o: emacs.out
siglist.out: config.h sh.h siglist.in siglist.sh
2004-06-03 14:37:07 +02:00
${SHELL} ${.CURDIR}/siglist.sh \
"${CC} -E ${CPPFLAGS}" <${.CURDIR}/siglist.in >siglist.out
emacs.out: emacs.c
2004-06-03 14:37:07 +02:00
${SHELL} ${.CURDIR}/emacs-gen.sh ${.CURDIR}/emacs.c >emacs.out
check test:
2004-06-03 14:37:07 +02:00
${SHELL} ${.CURDIR}/tests/th.sh ${.CURDIR}/tests/th \
-s ${.CURDIR}/tests -p ./ksh -C pdksh,sh,ksh,posix,posix-upu
.include <bsd.prog.mk>