1*c66bbc91SGabor Kovesdan# $FreeBSD$ 2*c66bbc91SGabor Kovesdan 3*c66bbc91SGabor Kovesdan.include <bsd.own.mk> 4*c66bbc91SGabor Kovesdan 5*c66bbc91SGabor Kovesdan.if ${MK_BSD_SORT} == "yes" 6*c66bbc91SGabor KovesdanPROG= sort 7*c66bbc91SGabor Kovesdan.else 8*c66bbc91SGabor KovesdanPROG= bsdsort 9*c66bbc91SGabor KovesdanCLEANFILES+= bsdsort.1 10*c66bbc91SGabor Kovesdan 11*c66bbc91SGabor Kovesdanbsdsort.1: sort.1 12*c66bbc91SGabor Kovesdan cp ${.ALLSRC} ${.TARGET} 13*c66bbc91SGabor Kovesdan.endif 14*c66bbc91SGabor Kovesdan 15*c66bbc91SGabor KovesdanSRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c 16*c66bbc91SGabor Kovesdan 17*c66bbc91SGabor KovesdanWARNS= 6 18*c66bbc91SGabor Kovesdan 19*c66bbc91SGabor Kovesdansort.1: sort.1.in 20*c66bbc91SGabor Kovesdan /usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET} 21*c66bbc91SGabor Kovesdan 22*c66bbc91SGabor KovesdanCLEANFILES+= sort.1 23*c66bbc91SGabor Kovesdan 24*c66bbc91SGabor Kovesdan.if !defined(WITHOUT_THREADS) 25*c66bbc91SGabor KovesdanCFLAGS+= -DSORT_THREADS 26*c66bbc91SGabor KovesdanLDFLAGS+= -lpthread -lmd 27*c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%||g' 28*c66bbc91SGabor Kovesdan.else 29*c66bbc91SGabor KovesdanLDFLAGS+= -lmd 30*c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 31*c66bbc91SGabor Kovesdan.endif 32*c66bbc91SGabor Kovesdan 33*c66bbc91SGabor Kovesdan.if !defined(WITHOUT_NLS) 34*c66bbc91SGabor KovesdanNLS+= hu_HU.ISO8859-2 35*c66bbc91SGabor KovesdanNLSSRCFILES= ${NLS:S@$@.msg@} 36*c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%NLS%%||g' 37*c66bbc91SGabor Kovesdan.for lang in ${NLS} 38*c66bbc91SGabor KovesdanNLSSRCDIR_${lang}= ${.CURDIR}/nls 39*c66bbc91SGabor Kovesdan.endfor 40*c66bbc91SGabor Kovesdan.else 41*c66bbc91SGabor KovesdanCFLAGS+= -DWITHOUT_NLS 42*c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 43*c66bbc91SGabor Kovesdan.endif 44*c66bbc91SGabor Kovesdan 45*c66bbc91SGabor Kovesdan.include <bsd.prog.mk> 46