162ada1c8b
"/usr/include/machine/varargs.h") by a stub include file which will emit an error if GCC 3.3 or newer is used and include "machine/varargs.h" otherwise. Based on a suggestion by Richard Earnshaw. This fixes PR toolchain/22888 by myself.
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2003/10/14 12:46:44 tron Exp $
|
|
|
|
# For now, we install the machine and arch includes, and symlink 'machine'
|
|
# to the location of the machine includes (usually).
|
|
#
|
|
# Eventually, we should install everything.
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
SUBDIR= ${MACHINE}
|
|
ARCHSUBDIR= ${MACHINE_CPU}
|
|
|
|
.if ${MACHINE} != ${ARCHSUBDIR}
|
|
.if exists(${ARCHSUBDIR})
|
|
SUBDIR+= ${ARCHSUBDIR}
|
|
.endif
|
|
.endif
|
|
.if ${MACHINE} == sparc
|
|
SUBDIR+= sparc64
|
|
.endif
|
|
.if (${MACHINE} == hpcmips || ${MACHINE} == hpcsh)
|
|
SUBDIR+= hpc
|
|
.endif
|
|
.if (${MACHINE} == sun2 || ${MACHINE} == sun3)
|
|
SUBDIR+= sun68k
|
|
.endif
|
|
|
|
#SUBDIR=acorn26 acorn32 algor alpha amiga amigappc arm arc atari \
|
|
# bebox \
|
|
# cats cesfic cobalt \
|
|
# dreamcast \
|
|
# evbarm evbmips evbppc evbsh3 evbsh5 \
|
|
# hp300 hpc hpcarm hpcmips hpcsh \
|
|
# i386 \
|
|
# luna68k \
|
|
# m68k mac68k macppc mips mipsco mmeye mvme68k \
|
|
# netwinder news68k newsmips next68k \
|
|
# ofppc \
|
|
# pc532 playstation2 pmax powerpc prep \
|
|
# sandpoint sbmips sgimips sh3 sh5 shark sparc sparc64 sun2 sun3 sun68k \
|
|
# vax \
|
|
# x68k x86_64
|
|
|
|
INCSYMLINKS= ${MACHINE} /usr/include/machine
|
|
|
|
INCSYMLINKS+= machine/float.h /usr/include/float.h \
|
|
machine/frame.h /usr/include/frame.h \
|
|
machine/stdarg.h /usr/include/stdarg.h
|
|
|
|
.include <bsd.kinc.mk>
|