release.sh changes & fixes
[minix3.git] / external / gpl3 / gcc / lib / Makefile.hacks
blobed6b486fde8eb4bbcb541a3d02703d07dfb84836
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
7 ${FAKEHEADERS}:
8         ${_MKTARGET_CREATE}
9         touch ${.TARGET}
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.
16 # XXX arm hack
17 .if ${MACHINE_CPU} == "arm"
18 ${OBJS}: insn-modes.h
19 # XXX XXX
20 ${__DPSRCS.d}: insn-modes.h
21 insn-modes.h:
22         ${_MKTARGET_CREATE}
23         echo "enum machine_mode { X };" > ${.TARGET}
24 DPSRCS+=        insn-modes.h
25 CLEANFILES+=    insn-modes.h
26 .endif