1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= sort 6 7SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c 8 9sort.1: sort.1.in 10 sed ${MAN_SUB} ${.ALLSRC} >${.TARGET} 11 12CLEANFILES+= sort.1 13 14.if ${MK_SORT_THREADS} != "no" 15CFLAGS+= -DSORT_THREADS 16LIBADD= pthread md 17MAN_SUB+= -e 's|%%THREADS%%||g' 18.else 19LIBADD= md 20MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 21.endif 22 23.if ${MK_NLS} != "no" 24NLS+= hu_HU.ISO8859-2 25NLSSRCFILES= ${NLS:S@$@.msg@} 26MAN_SUB+= -e 's|%%NLS%%||g' 27.for lang in ${NLS} 28NLSSRCDIR_${lang}= ${.CURDIR}/nls 29.endfor 30.else 31CFLAGS+= -DWITHOUT_NLS 32MAN_SUB+= -e 's|%%NLS%%|\.\\"|g' 33.endif 34 35HAS_TESTS= 36SUBDIR.${MK_TESTS}+= tests 37 38.include <bsd.prog.mk> 39