1# $NetBSD: Makefile.hacks,v 1.4 2014/03/01 10:00:31 mrg Exp $ 2 3# some random crap we need in a few places 4 5# arm.h wants MACHMODE aka "enum machine_mode" so we provide a hackful 6# one here to help build libs before gcc itself is built. 7 8# XXX arm hack 9.if ${MACHINE_CPU} == "arm" 10${OBJS}: insn-modes.h 11# XXX XXX 12${__DPSRCS.d}: insn-modes.h 13insn-modes.h: 14 ${_MKTARGET_CREATE} 15 echo "enum machine_mode { X };" > ${.TARGET} 16DPSRCS+= insn-modes.h 17CLEANFILES+= insn-modes.h 18.endif 19 20.if ${MACHINE_CPU} == "mips" 21insn-constants.h: 22 ${_MKTARGET_CREATE} 23 echo "enum processor { on, off };" > ${.TARGET} 24DPSRCS+= insn-constants.h 25CLEANFILES+= insn-constants.h 26.else 27FAKEHEADERS+= insn-constants.h 28.endif 29 30# these aren't necessary but are #include'd 31FAKEHEADERS+= ${EXTRA_FAKEHEADERS} insn-flags.h sysroot-suffix.h 32${FAKEHEADERS}: 33 ${_MKTARGET_CREATE} 34 touch ${.TARGET} 35DPSRCS+= ${FAKEHEADERS} 36CLEANFILES+= ${FAKEHEADERS} 37