1# $FreeBSD$ 2 3.include <bsd.own.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 defined(WITH_THREADS) 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 !defined(WITHOUT_NLS) 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