1 2.include <src.opts.mk> 3 4PACKAGE= runtime 5PROG= sort 6SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c 7CSTD= c11 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 23HAS_TESTS= 24SUBDIR.${MK_TESTS}+= tests 25 26.include <bsd.prog.mk> 27