summaryrefslogtreecommitdiffstats
path: root/bin/dd/Makefile
blob: ab33aed85499ecfbb8fbd7b5039a0ca5df694ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#	@(#)Makefile	8.1 (Berkeley) 5/31/93
# $FreeBSD$

PROG=	dd
SRCS=	args.c conv.c conv_tab.c dd.c misc.c position.c

MAINTAINER=	green@FreeBSD.org

.include <bsd.prog.mk>

#
# 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 \
    swab lcase ucase
	@echo testing conv=${conv}
	@./a.out | \
	  /usr/bin/env -i LC_CTYPE=ASCII ./dd conv=${conv} 2>/dev/null | \
	  /usr/bin/env -i LC_CTYPE=ASCII hexdump -C | \
	  diff -IFreeBSD - ${.CURDIR}/ref.${conv}
.endfor
OpenPOWER on IntegriCloud