2007-01-17 23:51:47 +01:00
|
|
|
# $MirOS: src/bin/mksh/Makefile,v 1.24 2007/01/17 22:51:46 tg Exp $
|
2005-05-23 05:06:10 +02:00
|
|
|
|
|
|
|
PROG= mksh
|
|
|
|
SRCS= alloc.c edit.c eval.c exec.c expr.c funcs.c histrap.c \
|
|
|
|
jobs.c lex.c main.c misc.c shf.c syn.c tree.c var.c
|
2007-01-12 02:11:03 +01:00
|
|
|
CPPFLAGS+= -DHAVE_ATTRIBUTE -DHAVE_ATTRIBUTE_BOUNDED -DHAVE_ATTRIBUTE_USED
|
2007-01-17 23:51:47 +01:00
|
|
|
CPPFLAGS+= -DHAVE_SYS_PARAM_H -DHAVE_LIBGEN_H -DHAVE_STDBOOL_H
|
|
|
|
CPPFLAGS+= -DHAVE_SYS_SIGNAME -DHAVE_SYS_SIGLIST
|
2007-01-17 22:42:23 +01:00
|
|
|
CPPFLAGS+= -DHAVE_ARC4RANDOM -DHAVE_ARC4RANDOM_PUSH -DHAVE_SETLOCALE_CTYPE
|
|
|
|
CPPFLAGS+= -DHAVE_LANGINFO_CODESET -DHAVE_SETMODE -DHAVE_SETRESUGID
|
|
|
|
CPPFLAGS+= -DHAVE_SETGROUPS -DHAVE_STRCASESTR -DHAVE_STRLCPY
|
|
|
|
CPPFLAGS+= -DHAVE_MULTI_IDSTRING
|
2005-05-23 13:59:06 +02:00
|
|
|
CDIAGFLAGS+= -Wno-cast-qual
|
2005-05-23 05:06:10 +02:00
|
|
|
|
2006-07-23 21:10:59 +02:00
|
|
|
LINKS+= ${BINDIR}/${PROG} ${BINDIR}/sh
|
|
|
|
MLINKS+= ${PROG}.1 sh.1
|
|
|
|
|
2005-05-23 05:06:10 +02:00
|
|
|
regress: ${PROG} check.pl check.t
|
2007-01-12 02:11:03 +01:00
|
|
|
-rm -rf regress-dir
|
2006-05-08 14:18:49 +02:00
|
|
|
mkdir -p regress-dir
|
|
|
|
echo export FNORD=666 >regress-dir/.mkshrc
|
|
|
|
HOME=$$(readlink -nf regress-dir) perl ${.CURDIR}/check.pl \
|
2006-08-01 14:46:01 +02:00
|
|
|
-s ${.CURDIR}/check.t -v -p ./${PROG} -C pdksh
|
2006-05-08 14:18:49 +02:00
|
|
|
|
|
|
|
cleandir: clean-regress
|
|
|
|
|
|
|
|
clean-regress:
|
|
|
|
-rm -rf regress-dir
|
2005-05-23 05:06:10 +02:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|