2002-04-08 12:12:07 +00:00
|
|
|
# $FreeBSD$
|
2002-06-08 10:34:12 +00:00
|
|
|
|
|
|
|
SORTDIR= ${.CURDIR}/../../../contrib/gnu-sort
|
|
|
|
.PATH: ${SORTDIR}/lib ${SORTDIR}/src ${SORTDIR}/man
|
|
|
|
|
2012-05-11 12:47:21 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if ${MK_BSD_SORT} != "yes"
|
2002-04-08 12:12:07 +00:00
|
|
|
PROG= sort
|
2012-05-11 12:47:21 +00:00
|
|
|
.else
|
|
|
|
PROG= gnusort
|
|
|
|
|
|
|
|
CLEANFILES+= gnusort.1
|
|
|
|
gnusort.1: sort.1
|
|
|
|
cp ${.ALLSRC} ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
2002-06-08 10:34:12 +00:00
|
|
|
SRCS= sort.c \
|
2004-07-02 09:34:37 +00:00
|
|
|
__fpending.c \
|
2002-06-08 10:34:12 +00:00
|
|
|
argmatch.c \
|
2004-07-02 09:34:37 +00:00
|
|
|
closeout.c \
|
2002-06-08 10:34:12 +00:00
|
|
|
dup-safer.c \
|
|
|
|
error.c \
|
2004-07-02 09:34:37 +00:00
|
|
|
exitfail.c \
|
2002-06-08 10:34:12 +00:00
|
|
|
fopen-safer.c \
|
|
|
|
hard-locale.c \
|
|
|
|
human.c \
|
|
|
|
long-options.c \
|
|
|
|
memcoll.c \
|
|
|
|
physmem.c \
|
|
|
|
posixver.c \
|
|
|
|
quote.c \
|
|
|
|
quotearg.c \
|
2004-07-02 11:09:55 +00:00
|
|
|
strnlen.c \
|
2004-07-02 09:34:37 +00:00
|
|
|
umaxtostr.c \
|
2002-06-08 10:34:12 +00:00
|
|
|
version-etc.c \
|
2004-08-12 06:02:28 +00:00
|
|
|
xalloc-die.c \
|
2002-06-08 10:34:12 +00:00
|
|
|
xmalloc.c \
|
|
|
|
xmemcoll.c \
|
|
|
|
xstrtoul.c \
|
|
|
|
xstrtoumax.c
|
2002-04-08 12:12:07 +00:00
|
|
|
|
2007-10-12 18:15:40 +00:00
|
|
|
CFLAGS+=-DHAVE_CONFIG_H -DHAVE_LANGINFO_H=1 -DHAVE_NL_LANGINFO=1 \
|
|
|
|
-I${.CURDIR} -I${SORTDIR}/lib
|
2002-04-08 12:12:07 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|