1# @(#)Makefile 8.1 (Berkeley) 5/31/93 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6PACKAGE=runtime 7PROG= dd 8SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c 9 10# 11# Test the character conversion functions. We have to be explicit about 12# which LC_LANG we use because the definition of upper and lower case 13# depends on it. 14# 15 16CLEANFILES= gen 17 18test: ${PROG} gen 19.for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \ 20 pareven parnone parodd parset \ 21 swab lcase ucase 22 @${ECHO} testing conv=${conv} 23 @./gen | \ 24 LC_ALL=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \ 25 LC_ALL=en_US.US-ASCII hexdump -C | \ 26 diff -I FreeBSD - ${.CURDIR}/ref.${conv} 27.endfor 28 @rm -f gen 29 30.if ${MK_TESTS} != "no" 31SUBDIR+= tests 32.endif 33 34.include <bsd.prog.mk> 35