22 lines
541 B
Makefile
22 lines
541 B
Makefile
# $NetBSD: Makefile.hacks,v 1.5 2016/03/17 08:02:38 mrg Exp $
|
|
|
|
# some random crap we need in a few places
|
|
|
|
.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}
|