NetBSD/distrib/sets/mkvars.mk
mrg cf4dd8937a remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)
2015-07-23 08:03:24 +00:00

113 lines
1.9 KiB
Makefile

# $NetBSD: mkvars.mk,v 1.24 2015/07/23 08:03:25 mrg Exp $
MKEXTRAVARS= \
MACHINE \
MACHINE_ARCH \
MACHINE_CPU \
HAVE_GCC \
HAVE_GDB \
HAVE_LIBGCC_EH \
HAVE_SSP \
OBJECT_FMT \
TOOLCHAIN_MISSING \
EXTSRCS \
MKMANZ \
MKBFD \
MKCOMPAT \
MKCOMPATTESTS \
MKCOMPATMODULES \
MKDYNAMICROOT \
MKMANPAGES \
MKSLJIT \
MKSOFTFLOAT \
MKXORG \
MKXORG_SERVER \
MKRADEONFIRMWARE \
USE_INET6 \
USE_KERBEROS \
USE_LDAP \
USE_YP \
NETBSDSRCDIR \
MAKEVERBOSE \
TARGET_ENDIANNESS \
EABI \
ARCH64
#####
.include <bsd.own.mk>
.include <bsd.endian.mk>
.if (${MKMAN} == "no" || empty(MANINSTALL:Mmaninstall))
MKMANPAGES=no
.else
MKMANPAGES=yes
.endif
.if ${MKCOMPAT} != "no"
ARCHDIR_SUBDIR:=
.include "${NETBSDSRCDIR}/compat/archdirs.mk"
COMPATARCHDIRS:=${ARCHDIR_SUBDIR:T}
.endif
.if ${MKKMOD} != "no" && ${MKCOMPATMODULES} != "no"
ARCHDIR_SUBDIR:=
.include "${NETBSDSRCDIR}/sys/modules/arch/archdirs.mk"
KMODARCHDIRS:=${ARCHDIR_SUBDIR:T}
.endif
.if ${MKX11} != "no"
MKXORG:=yes
# We have to force this off, because "MKX11" is still an option
# that is in _MKVARS.
MKX11:=no
.endif
.if (!empty(MACHINE_ARCH:Mearm*))
EABI=yes
.else
EABI=no
.endif
.if (!empty(MACHINE_ARCH:M*64*) || ${MACHINE_ARCH} == alpha)
ARCH64=yes
.else
ARCH64=no
.endif
#####
mkvars: mkvarsyesno mkextravars mksolaris .PHONY
mkvarsyesno: .PHONY
.for i in ${_MKVARS.yes}
@echo $i="${$i}"
.endfor
.for i in ${_MKVARS.no}
@echo $i="${$i}"
.endfor
mkextravars: .PHONY
.for i in ${MKEXTRAVARS}
@echo $i="${$i}"
.endfor
.if ${MKCOMPAT} != "no"
@echo COMPATARCHDIRS=${COMPATARCHDIRS} | ${TOOL_SED} -e's/ /,/g'
.else
@echo COMPATARCHDIRS=
.endif
.if ${MKKMOD} != "no" && ${MKCOMPATMODULES} != "no"
@echo KMODARCHDIRS=${KMODARCHDIRS} | ${TOOL_SED} -e's/ /,/g'
.else
@echo KMODARCHDIRS=
.endif
mksolaris: .PHONY
.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
@echo MKSOLARIS="yes"
.else
@echo MKSOLARIS="no"
.endif
.include <bsd.files.mk>