1 # $NetBSD: Makefile.hacks,v 1.3 2013/05/01 19:56:47 matt Exp $
3 # some random crap we need in a few places
5 # these aren't necessary but are #include'd
6 FAKEHEADERS= ${EXTRA_FAKEHEADERS} insn-flags.h insn-constants.h sysroot-suffix.h
10 tm.h ${SRCS}: ${FAKEHEADERS}
11 CLEANFILES+= ${FAKEHEADERS}
13 # arm.h wants MACHMODE aka "enum machine_mode" so we provide a hackful
14 # one here to help build libs before gcc itself is built.
17 .if ${MACHINE_CPU} == "arm"
20 ${__DPSRCS.d}: insn-modes.h
23 echo "enum machine_mode { X };" > ${.TARGET}
25 CLEANFILES+= insn-modes.h