1994-05-26 06:18:55 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
1999-08-27 23:15:48 +00:00
|
|
|
# $FreeBSD$
|
1994-05-26 06:18:55 +00:00
|
|
|
|
|
|
|
PROG= dd
|
|
|
|
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
|
|
|
|
|
1999-12-07 03:32:37 +00:00
|
|
|
MAINTAINER= green@FreeBSD.org
|
|
|
|
|
1994-05-26 06:18:55 +00:00
|
|
|
.include <bsd.prog.mk>
|
2004-03-05 19:30:13 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test the character conversion functions. We have to be explicit about
|
|
|
|
# which LC_LANG we use because the definition of upper and lower case
|
|
|
|
# depends on it.
|
|
|
|
test: ${PROG}
|
|
|
|
cc ${.CURDIR}/gen.c
|
|
|
|
.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \
|
2004-03-05 19:35:51 +00:00
|
|
|
pareven parnone parodd parset \
|
2004-03-05 19:30:13 +00:00
|
|
|
swab lcase ucase
|
|
|
|
@echo testing conv=${conv}
|
|
|
|
@./a.out | \
|
2004-03-06 06:10:16 +00:00
|
|
|
/usr/bin/env -i LC_CTYPE=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \
|
|
|
|
/usr/bin/env -i LC_CTYPE=en_US.US-ASCII hexdump -C | \
|
2004-03-05 19:30:13 +00:00
|
|
|
diff -IFreeBSD - ${.CURDIR}/ref.${conv}
|
|
|
|
.endfor
|
2004-03-08 18:09:33 +00:00
|
|
|
@rm -f a.out
|