xref: /freebsd/usr.bin/sort/Makefile (revision c6063d0da8e1f8d8452b0c2ee1c7ad718c1a7052)
1c66bbc91SGabor Kovesdan# $FreeBSD$
2c66bbc91SGabor Kovesdan
3*c6063d0dSWarner Losh.include <src.opts.mk>
4c66bbc91SGabor Kovesdan
5c66bbc91SGabor KovesdanPROG=	sort
6c66bbc91SGabor Kovesdan
7c66bbc91SGabor KovesdanSRCS=	bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c
8c66bbc91SGabor Kovesdan
9c66bbc91SGabor Kovesdansort.1: sort.1.in
10c66bbc91SGabor Kovesdan	/usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}
11c66bbc91SGabor Kovesdan
12c66bbc91SGabor KovesdanCLEANFILES+= sort.1
13c66bbc91SGabor Kovesdan
14cf57243aSWarner Losh.if ${MK_SORT_THREADS} != "no"
15c66bbc91SGabor KovesdanCFLAGS+= -DSORT_THREADS
16c66bbc91SGabor KovesdanLDFLAGS+= -lpthread -lmd
17c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%||g'
18c66bbc91SGabor Kovesdan.else
19c66bbc91SGabor KovesdanLDFLAGS+= -lmd
20c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
21c66bbc91SGabor Kovesdan.endif
22c66bbc91SGabor Kovesdan
23cf57243aSWarner Losh.if ${MK_NLS} != "no"
24c66bbc91SGabor KovesdanNLS+=	hu_HU.ISO8859-2
25c66bbc91SGabor KovesdanNLSSRCFILES= ${NLS:S@$@.msg@}
26c66bbc91SGabor KovesdanMAN_SUB+= -e 's|%%NLS%%||g'
27c66bbc91SGabor Kovesdan.for lang in ${NLS}
28c66bbc91SGabor KovesdanNLSSRCDIR_${lang}= ${.CURDIR}/nls
29c66bbc91SGabor Kovesdan.endfor
30c66bbc91SGabor Kovesdan.else
31c66bbc91SGabor KovesdanCFLAGS+= -DWITHOUT_NLS
32d826ccd6SGabor KovesdanMAN_SUB+= -e 's|%%NLS%%|\.\\"|g'
33c66bbc91SGabor Kovesdan.endif
34c66bbc91SGabor Kovesdan
35c66bbc91SGabor Kovesdan.include <bsd.prog.mk>
36