freebsd-skq/gnu/usr.bin/sort/Makefile

47 lines
738 B
Makefile
Raw Normal View History

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
.include <bsd.own.mk>
.if ${MK_BSD_SORT} != "yes"
2002-04-08 12:12:07 +00:00
PROG= sort
.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 \
__fpending.c \
2002-06-08 10:34:12 +00:00
argmatch.c \
closeout.c \
2002-06-08 10:34:12 +00:00
dup-safer.c \
error.c \
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 \
strnlen.c \
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>