1 # $NetBSD: Makefile.hacks,v 1.4 2014/03/01 10:00:31 mrg Exp $
3 # some random crap we need in a few places
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.
9 .if ${MACHINE_CPU} == "arm"
12 ${__DPSRCS.d}: insn-modes.h
15 echo "enum machine_mode { X };" > ${.TARGET}
17 CLEANFILES+= insn-modes.h
20 .if ${MACHINE_CPU} == "mips"
23 echo "enum processor { on, off };" > ${.TARGET}
24 DPSRCS+= insn-constants.h
25 CLEANFILES+= insn-constants.h
27 FAKEHEADERS+= insn-constants.h
30 # these aren't necessary but are #include'd
31 FAKEHEADERS+= ${EXTRA_FAKEHEADERS} insn-flags.h sysroot-suffix.h
35 DPSRCS+= ${FAKEHEADERS}
36 CLEANFILES+= ${FAKEHEADERS}