Deleted Added
full compact
Makefile (126666) Makefile (126667)
1# @(#)Makefile 8.1 (Berkeley) 5/31/93
1# @(#)Makefile 8.1 (Berkeley) 5/31/93
2# $FreeBSD: head/bin/dd/Makefile 126666 2004-03-05 19:30:13Z phk $
2# $FreeBSD: head/bin/dd/Makefile 126667 2004-03-05 19:35:51Z phk $
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 \
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 \
18 swab lcase ucase
19 @echo testing conv=${conv}
20 @./a.out | \
21 /usr/bin/env -i LC_CTYPE=ASCII ./dd conv=${conv} 2>/dev/null | \
22 /usr/bin/env -i LC_CTYPE=ASCII hexdump -C | \
23 diff -IFreeBSD - ${.CURDIR}/ref.${conv}
24.endfor
19 swab lcase ucase
20 @echo testing conv=${conv}
21 @./a.out | \
22 /usr/bin/env -i LC_CTYPE=ASCII ./dd conv=${conv} 2>/dev/null | \
23 /usr/bin/env -i LC_CTYPE=ASCII hexdump -C | \
24 diff -IFreeBSD - ${.CURDIR}/ref.${conv}
25.endfor