1c66bbc91SGabor Kovesdan# $FreeBSD$ 2c66bbc91SGabor Kovesdan 3c6063d0dSWarner Losh.include <src.opts.mk> 4c66bbc91SGabor Kovesdan 5*0c19c4dbSDoug RabsonPACKAGE= runtime 6c66bbc91SGabor KovesdanPROG= sort 7c66bbc91SGabor KovesdanSRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c 8d053fb22SAlex RichardsonCSTD= c11 9c66bbc91SGabor Kovesdan 10c66bbc91SGabor Kovesdansort.1: sort.1.in 11101db63bSAlex Richardson sed ${MAN_SUB} ${.ALLSRC} >${.TARGET} 12c66bbc91SGabor Kovesdan 13c66bbc91SGabor KovesdanCLEANFILES+= sort.1 14c66bbc91SGabor Kovesdan 15cf57243aSWarner Losh.if ${MK_SORT_THREADS} != "no" 16c66bbc91SGabor KovesdanCFLAGS+= -DSORT_THREADS 173e11bd9eSBaptiste DaroussinLIBADD= pthread md 18c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%||g' 19c66bbc91SGabor Kovesdan.else 203e11bd9eSBaptiste DaroussinLIBADD= md 21c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 22c66bbc91SGabor Kovesdan.endif 23c66bbc91SGabor Kovesdan 24cf57243aSWarner Losh.if ${MK_NLS} != "no" 25c66bbc91SGabor KovesdanNLS+= hu_HU.ISO8859-2 26c66bbc91SGabor KovesdanNLSSRCFILES= ${NLS:S@$@.msg@} 27c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%NLS%%||g' 28c66bbc91SGabor Kovesdan.for lang in ${NLS} 29c66bbc91SGabor KovesdanNLSSRCDIR_${lang}= ${.CURDIR}/nls 30c66bbc91SGabor Kovesdan.endfor 31c66bbc91SGabor Kovesdan.else 32c66bbc91SGabor KovesdanCFLAGS+= -DWITHOUT_NLS 33d826ccd6SGabor KovesdanMAN_SUB+= -e 's|%%NLS%%|\.\\"|g' 34c66bbc91SGabor Kovesdan.endif 35c66bbc91SGabor Kovesdan 36186ba88aSMark JohnstonHAS_TESTS= 37186ba88aSMark JohnstonSUBDIR.${MK_TESTS}+= tests 3836180cd5SKyle Evans 39c66bbc91SGabor Kovesdan.include <bsd.prog.mk> 40