# $OpenBSD: Makefile32.inc,v 1.6 2016/10/05 11:55:45 visa Exp $ .ifndef __INCLUDED_STAND_MAKEFILE32_INC __INCLUDED_STAND_MAKEFILE32_INC= .if ${MACHINE} == "sgi" # Silence warnings CFLAGS+= -fno-builtin-snprintf CFLAGS+= -fno-builtin-memcpy CFLAGS+= -fno-builtin-memcmp CFLAGS+= -fno-builtin-memset CFLAGS+= -fno-builtin-strncpy CFLAGS+= -fno-builtin-strncmp # Override toolchain options to force 32 bit binaries SAABI= -mno-abicalls -D_NO_ABICALLS -mabi=32 -mips2 -Wa,-G0 AS?= as AS+= -32 LD?= ld LD+= -m elf32btsmip LIBSA_CPPFLAGS= CFLAGS+= -DLIBSA_LONGLONG_PRINTF .endif ### Figure out what to use for libsa and libz LIBSADIR= ${.CURDIR}/../libsa32 LIBZDIR= ${.CURDIR}/../libz32 .endif