xref: /freebsd/usr.bin/sort/Makefile (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5PROG=	sort
6
7SRCS=	bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c
8
9sort.1: sort.1.in
10	/usr/bin/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
23.if ${MK_NLS} != "no"
24NLS+=	hu_HU.ISO8859-2
25NLSSRCFILES= ${NLS:S@$@.msg@}
26MAN_SUB+= -e 's|%%NLS%%||g'
27.for lang in ${NLS}
28NLSSRCDIR_${lang}= ${.CURDIR}/nls
29.endfor
30.else
31CFLAGS+= -DWITHOUT_NLS
32MAN_SUB+= -e 's|%%NLS%%|\.\\"|g'
33.endif
34
35.include <bsd.prog.mk>
36