Add links for various directories needs by amd64/sparc64/i386/sun2/m68000

This commit is contained in:
matt 2013-08-20 20:54:35 +00:00
parent 52b1859854
commit 56cc66b2e2

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2013/08/20 18:06:03 matt Exp $
# $NetBSD: Makefile,v 1.4 2013/08/20 20:54:35 matt Exp $
WITHOUT_MAN=true # defined
@ -9,12 +9,6 @@ LIB= kern
LIBISPRIVATE?= yes
DBG= -Os
MKDEBUGLIB:= no
MKLINT:= no
MKPICINSTALL:= no
MKPIC:= no
MKPROFILE:= no
S= ${NETBSDSRCDIR}/sys
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I${S}/arch
@ -33,11 +27,27 @@ CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
realdepend realall: machine .WAIT
CLEANFILES+= ${MACHINE_CPU} machine
ARCHDIRS.i386= x86
ARCHDIRS.m68000= m68k
ARCHDIRS.sparc64= sparc
ARCHDIRS.x86_64= x86
MACHDIRS.sun2= sun68k
machine::
.if ${MACHINE_CPU} == "arm"
ln -sf ${S}/arch/${MACHINE_CPU}/include machine
.else
ln -sf ${S}/arch/${MACHINE}/include machine
.endif
.if !empty(ARCHDIRS.${MACHINE_ARCH})
.for d in ${ARCHDIRS.${MACHINE_ARCH}}
ln -sf ${S}/arch/${d}/include ${d}
.endfor
.endif
.if !empty(MACHDIRS.${MACHINE})
.for d in ${MACHDIRS.${MACHINE}}
ln -sf ${S}/arch/${d}/include ${d}
.endfor
.endif
ln -sf ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}