diff options
| author | lukem <lukem@NetBSD.org> | 2003-03-01 06:10:39 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2003-03-01 06:10:39 +0000 |
| commit | b1c71074fa2bf123cd062abb67a916536acddcd0 (patch) | |
| tree | 8415553854e8b58d87599002a7e7b6b150a6582b /lib | |
| parent | 6c3a6223d452c9a0e0cc66ee5fa6e200bd3df4dc (diff) | |
Add workaround for building with ${MACHINE}==sparc64, ${MACHINE_ARCH}==sparc;
symlink the appropriate machine & sparc include directories into the objdir.
XXX: this is necessary until (when?) the sparc Arch Dependent headers
(used by MACHINE_ARCH==sparc) are separated from the sparc Machine
Dependent headeres (used by MACHINE==sparc but not MACHINE==sparc64).
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libkvm/Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/libkvm/Makefile b/lib/libkvm/Makefile index cab01ab94ca..444747cac8f 100644 --- a/lib/libkvm/Makefile +++ b/lib/libkvm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2003/01/18 10:40:41 thorpej Exp $ +# $NetBSD: Makefile,v 1.40 2003/03/01 06:10:39 lukem Exp $ # from: @(#)Makefile 8.1 (Berkeley) 6/4/93 USE_SHLIBDIR= yes @@ -40,4 +40,21 @@ MLINKS+=kvm_read.3 kvm_write.3 MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3 MLINKS+=kvm_dump.3 kvm_dump_inval.3 +# This fixes building with MACHINE==sparc64, MACHINE_ARCH==sparc +# XXX: this is a hack, but until the sparc MD headers are separated +# out from the sparc AD headers, it's the easiest solution. +# +.if (${MACHINE_ARCH} == "sparc") # { +.if !make(obj) && !make(clean) && !make(cleandir) +.BEGIN: + @([ -h machine ] || \ + ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include machine) + @([ -h sparc ] || ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include sparc) +.NOPATH: machine sparc +.endif +CLEANFILES+= machine sparc +CPPFLAGS+= -I. +.endif # } + + .include <bsd.lib.mk> |
