diff --git a/sys/arch/amiga/stand/bootblock/boot/Makefile b/sys/arch/amiga/stand/bootblock/boot/Makefile index aa40509eedb6..ddb2bc0cfddc 100644 --- a/sys/arch/amiga/stand/bootblock/boot/Makefile +++ b/sys/arch/amiga/stand/bootblock/boot/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.50 2014/03/29 12:52:56 mlelstv Exp $ +# $NetBSD: Makefile,v 1.51 2014/04/19 00:04:12 christos Exp $ .include .include # for HOST_SH @@ -81,11 +81,16 @@ INCPATH += -I${.CURDIR} INCPATH += -I${.CURDIR}/../../.. -I${.OBJDIR} INCPATH += -I${.CURDIR}/../elf2bb +.if defined(HAVE_GCC) && ${HAVE_GCC} >= 48 AFLAGS += -mcpu=68030 -l CAFLAGS += -Wa,-l -Wa,-mcpu=68030 ${INCPATH} +.else +AFLAGS += -m68030 -l +CAFLAGS += -Wa,-l -Wa,-m68030 ${INCPATH} +.endif COPTIM= -Os -fomit-frame-pointer -fcse-follow-jumps -fcse-skip-blocks -COPTIM+= -Wa,-l -m68060 -Wa,-mcpu=68030 -fno-unwind-tables +COPTIM+= -m68060 ${CAFLAGS} -fno-unwind-tables CFLAGS= -ffreestanding ${COPTIM} ${INCPATH} ${DEFS} CFLAGS+= -Werror CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith