1 # $NetBSD: Makefile.evbppc.inc,v 1.9 2022/09/11 09:14:56 rin Exp $ 2 3 CPPFLAGS += -D__${BOARDTYPE}__ 4 5 RAMDISKDIR!= cd ${NETBSDSRCDIR}/distrib/${THISPPC:T}/ramdisk && ${PRINTOBJDIR} 6 7 .-include "${THISPPC}/conf/Makefile.${BOARDTYPE}.inc" 8 9 # XXX hack for clang: 10 # - integrated as does not recognize {l,st}swx. 11 # - it does not pass gas for appropriate -mfoo flag. 12 .if ${ACTIVE_CC} == "clang" 13 . if !empty(AFLAGS:M-mcpu=403) 14 COPTS.trap.c+= -fno-integrated-as -Wa,-m403 15 . endif 16 . if !empty(AFLAGS:M-mcpu=405) 17 COPTS.trap.c+= -fno-integrated-as -Wa,-m405 18 . endif 19 .endif 20