1.include <src.opts.mk> 2 3PACKAGE= runtime 4PROG= sort 5SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c 6CSTD= c11 7 8sort.1: sort.1.in 9 sed ${MAN_SUB} ${.ALLSRC} >${.TARGET} 10 11CLEANFILES+= sort.1 12 13.if ${MK_SORT_THREADS} != "no" 14CFLAGS+= -DSORT_THREADS 15LIBADD= pthread md 16MAN_SUB+= -e 's|%%THREADS%%||g' 17.else 18LIBADD= md 19MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 20.endif 21 22HAS_TESTS= 23SUBDIR.${MK_TESTS}+= tests 24 25.include <bsd.prog.mk> 26