NetBSD/external/gpl3/gcc.old/lib/Makefile.hacks
mrg 07ece4eabb import the -current GCC 4.5 sources as gcc.old in preparation for
upgrading the normal GCC to 4.8.

this tree has had ChangeLog entries removed, as well as all the
other components we delete, and "only" weighs in around 140MB now.
2014-02-25 18:38:34 +00:00

27 lines
718 B
Makefile

# $NetBSD: Makefile.hacks,v 1.1.1.1 2014/02/25 18:42:04 mrg Exp $
# some random crap we need in a few places
# these aren't necessary but are #include'd
FAKEHEADERS= ${EXTRA_FAKEHEADERS} insn-flags.h insn-constants.h sysroot-suffix.h
${FAKEHEADERS}:
${_MKTARGET_CREATE}
touch ${.TARGET}
tm.h ${SRCS}: ${FAKEHEADERS}
CLEANFILES+= ${FAKEHEADERS}
# arm.h wants MACHMODE aka "enum machine_mode" so we provide a hackful
# one here to help build libs before gcc itself is built.
# XXX arm hack
.if ${MACHINE_CPU} == "arm"
${OBJS}: insn-modes.h
# XXX XXX
${__DPSRCS.d}: insn-modes.h
insn-modes.h:
${_MKTARGET_CREATE}
echo "enum machine_mode { X };" > ${.TARGET}
DPSRCS+= insn-modes.h
CLEANFILES+= insn-modes.h
.endif