# Disable use of pre-compiled headers on Darwin.
if ${BUILD_OSTYPE} == "Darwin"
CPPFLAGS+= -no-cpp-precomp
endif
# -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
# other file ops, on many systems, without changing function names.
CPPFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
ifndef NOCOMPATLIB
COMPATLIB_NO_LIB= yes # only the include files, not the library
-include "${TOOLDIR}/share/compat/defs.mk"
endif
# Keep the .SUFFIXES line after the include of bsd.hostlib.mk
M4OBJDIR!= cd ${.CURDIR}/../../m4 && ${PRINTOBJDIR}
SUFFIXES: .m4 .c
m4.c:
${M4OBJDIR}/m4 -D SRCDIR=${LIBELF_DIR} ${.IMPSRC} > ${.TARGET}