2012-05-11 12:37:16 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2012-05-11 12:37:16 +00:00
|
|
|
|
2022-07-29 09:15:24 +00:00
|
|
|
PACKAGE= runtime
|
2012-05-11 12:37:16 +00:00
|
|
|
PROG= sort
|
|
|
|
SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c
|
2021-07-05 13:32:48 +00:00
|
|
|
CSTD= c11
|
2012-05-11 12:37:16 +00:00
|
|
|
|
|
|
|
sort.1: sort.1.in
|
2018-08-23 18:18:43 +00:00
|
|
|
sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}
|
2012-05-11 12:37:16 +00:00
|
|
|
|
|
|
|
CLEANFILES+= sort.1
|
|
|
|
|
2014-04-05 18:01:49 +00:00
|
|
|
.if ${MK_SORT_THREADS} != "no"
|
2012-05-11 12:37:16 +00:00
|
|
|
CFLAGS+= -DSORT_THREADS
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= pthread md
|
2012-05-11 12:37:16 +00:00
|
|
|
MAN_SUB+= -e 's|%%THREADS%%||g'
|
|
|
|
.else
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= md
|
2012-05-11 12:37:16 +00:00
|
|
|
MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
|
|
|
|
.endif
|
|
|
|
|
2021-05-13 12:57:26 +00:00
|
|
|
HAS_TESTS=
|
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2018-06-20 03:10:49 +00:00
|
|
|
|
2012-05-11 12:37:16 +00:00
|
|
|
.include <bsd.prog.mk>
|