xref: /freebsd/usr.bin/sort/Makefile (revision 2f1217877e155a8a7de97e74eb7e82096a5ef316)
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
16LDFLAGS+= -lpthread -lmd
17MAN_SUB+= -e 's|%%THREADS%%||g'
18.else
19LDFLAGS+= -lmd
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