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