look for COMMON_MACHINE_ARCH before MACHINE_ARCH or MACHINE_CPU.
This commit is contained in:
parent
8679e33545
commit
4c0ca913b1
@ -1,10 +1,13 @@
|
||||
# $NetBSD: Makefile.inc,v 1.9 2008/06/15 20:35:11 christos Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.10 2008/10/26 07:22:50 mrg Exp $
|
||||
|
||||
COMMON_DIR:=${.PARSEDIR}
|
||||
COMMON_CODEDIRS=atomic gen gmon inet md net quad stdlib string sys
|
||||
COMMON_CODEDIRS+=hash/sha1 hash/sha2 hash/rmd160
|
||||
|
||||
.if defined(LIBKERN_ARCH) && !empty(LIBKERN_ARCH) && \
|
||||
.if defined(COMMON_MACHINE_ARCH) && !empty(COMMON_MACHINE_ARCH) && \
|
||||
exists(${COMMON_DIR}/arch/${COMMON_MACHINE_ARCH})
|
||||
COMMON_ARCHSUBDIR= ${COMMON_MACHINE_ARCH}
|
||||
.elif defined(LIBKERN_ARCH) && !empty(LIBKERN_ARCH) && \
|
||||
exists(${KERNDIR}/arch/${LIBKERN_ARCH})
|
||||
COMMON_ARCHSUBDIR= ${LIBKERN_ARCH}
|
||||
.elif exists(${COMMON_DIR}/arch/${MACHINE_ARCH})
|
||||
|
Loading…
Reference in New Issue
Block a user