4388a2f09a
When building FreeBSD the makefiles invoke find with various flags such as `-s` that aren't supported in the native /usr/bin/find. To fix this I build the FreeBSD version of find and use that when crossbuilding. Inserting lots if #ifdefs in the code is rather ugly but I don't see a better solution. Reviewed By: brooks (mentor) Approved By: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D13306
18 lines
297 B
Makefile
18 lines
297 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= find
|
|
SRCS= find.c function.c ls.c main.c misc.c operator.c option.c \
|
|
getdate.y
|
|
YFLAGS=
|
|
CFLAGS.clang+= -Werror=undef
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|