Makefile revision 126685
1#	@(#)Makefile	8.1 (Berkeley) 5/31/93
2# $FreeBSD: head/bin/dd/Makefile 126685 2004-03-06 06:10:16Z ache $
3
4PROG=	dd
5SRCS=	args.c conv.c conv_tab.c dd.c misc.c position.c
6
7MAINTAINER=	green@FreeBSD.org
8
9.include <bsd.prog.mk>
10
11#
12# Test the character conversion functions.  We have to be explicit about
13# which LC_LANG we use because the definition of upper and lower case
14# depends on it.
15test:	${PROG}
16	cc ${.CURDIR}/gen.c
17.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \
18    pareven parnone parodd parset \
19    swab lcase ucase
20	@echo testing conv=${conv}
21	@./a.out | \
22	  /usr/bin/env -i LC_CTYPE=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \
23	  /usr/bin/env -i LC_CTYPE=en_US.US-ASCII hexdump -C | \
24	  diff -IFreeBSD - ${.CURDIR}/ref.${conv}
25.endfor
26