xref: /freebsd/usr.bin/sort/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1c6063d0dSWarner Losh.include <src.opts.mk>
2c66bbc91SGabor Kovesdan
3*0c19c4dbSDoug RabsonPACKAGE= runtime
4c66bbc91SGabor KovesdanPROG=	sort
5c66bbc91SGabor KovesdanSRCS=	bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c
6d053fb22SAlex RichardsonCSTD=	c11
7c66bbc91SGabor Kovesdan
8c66bbc91SGabor Kovesdansort.1: sort.1.in
9101db63bSAlex Richardson	sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}
10c66bbc91SGabor Kovesdan
11c66bbc91SGabor KovesdanCLEANFILES+= sort.1
12c66bbc91SGabor Kovesdan
13cf57243aSWarner Losh.if ${MK_SORT_THREADS} != "no"
14c66bbc91SGabor KovesdanCFLAGS+= -DSORT_THREADS
153e11bd9eSBaptiste DaroussinLIBADD=	pthread md
16c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%||g'
17c66bbc91SGabor Kovesdan.else
183e11bd9eSBaptiste DaroussinLIBADD=	md
19c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
20c66bbc91SGabor Kovesdan.endif
21c66bbc91SGabor Kovesdan
22186ba88aSMark JohnstonHAS_TESTS=
23186ba88aSMark JohnstonSUBDIR.${MK_TESTS}+= tests
2436180cd5SKyle Evans
25c66bbc91SGabor Kovesdan.include <bsd.prog.mk>
26