phunix/external/gpl3/gcc/lib/Makefile.hacks
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

37 lines
911 B
Makefile

# $NetBSD: Makefile.hacks,v 1.4 2014/03/01 10:00:31 mrg Exp $
# some random crap we need in a few places
# 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
.if ${MACHINE_CPU} == "mips"
insn-constants.h:
${_MKTARGET_CREATE}
echo "enum processor { on, off };" > ${.TARGET}
DPSRCS+= insn-constants.h
CLEANFILES+= insn-constants.h
.else
FAKEHEADERS+= insn-constants.h
.endif
# these aren't necessary but are #include'd
FAKEHEADERS+= ${EXTRA_FAKEHEADERS} insn-flags.h sysroot-suffix.h
${FAKEHEADERS}:
${_MKTARGET_CREATE}
touch ${.TARGET}
DPSRCS+= ${FAKEHEADERS}
CLEANFILES+= ${FAKEHEADERS}