1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5.if ${MK_BSD_SORT} == "yes" 6PROG= sort 7.else 8PROG= bsdsort 9CLEANFILES+= bsdsort.1 10 11bsdsort.1: sort.1 12 cp ${.ALLSRC} ${.TARGET} 13.endif 14 15SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c 16 17WARNS= 6 18 19sort.1: sort.1.in 20 /usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET} 21 22CLEANFILES+= sort.1 23 24.if !defined(WITHOUT_THREADS) 25CFLAGS+= -DSORT_THREADS 26LDFLAGS+= -lpthread -lmd 27MAN_SUB+= -e 's|%%THREADS%%||g' 28.else 29LDFLAGS+= -lmd 30MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 31.endif 32 33.if !defined(WITHOUT_NLS) 34NLS+= hu_HU.ISO8859-2 35NLSSRCFILES= ${NLS:S@$@.msg@} 36MAN_SUB+= -e 's|%%NLS%%||g' 37.for lang in ${NLS} 38NLSSRCDIR_${lang}= ${.CURDIR}/nls 39.endfor 40.else 41CFLAGS+= -DWITHOUT_NLS 42MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 43.endif 44 45.include <bsd.prog.mk> 46