Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile.cflags,v 1.2 2022/12/17 09:46:21 mrg Exp $

.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
. if ${MACHINE_ARCH} == "i386"
CPPFLAGS+=		-DUSE_X86_MMX
. endif
CPPFLAGS+=		-DUSE_SSE2 -DUSE_SSSE3
.endif

.if ${MACHINE_ARCH} == "powerpc"
CPPFLAGS+=		-DUSE_VMX
.endif

.if !empty(MACHINE_ARCH:Mearm*)
CPPFLAGS+=	-DUSE_ARM_SIMD
CPPFLAGS+=	-DUSE_ARM_NEON
#CPPFLAGS+=	-DUSE_ARM_IWMMXT
.endif

.if !empty(MACHINE_ARCH:Maarch64*)
#CPPFLAGS+=	-DUSE_ARM_A64_NEON
.endif

.if !empty(MACHINE_ARCH:Mmips*64el) && empty(COPTS:M-march=*)
CPPFLAGS+=	-DUSE_LOONGSON_MMI
.endif

CPPFLAGS+=	-DHAVE_CONFIG_H \
		-I${X11SRCDIR.pixman}/../include \
		-I${X11SRCDIR.pixman}/../combine \
		-I${X11SRCDIR.pixman}/pixman