From ea415a0be8ba6b606c2ebf27d7b3ef4f2782c65a Mon Sep 17 00:00:00 2001 From: kmacy Date: Mon, 9 Oct 2006 05:12:54 +0000 Subject: unbreak build for sparc64 etc. TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg --- lib/libdisk/Makefile | 2 +- lib/libkvm/Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile index 01a7f85..763170d 100644 --- a/lib/libdisk/Makefile +++ b/lib/libdisk/Makefile @@ -10,7 +10,7 @@ _open_disk= open_disk.c LIB= disk SRCS= blocks.c ${_change} chunk.c create_chunk.c disk.c ${_open_disk} \ rules.c write_disk.c -.if ${TARGET} == "sun4v" +.if ${MACHINE} == "sun4v" SRCS+= write_sparc64_disk.c .else SRCS+= write_${MACHINE}_disk.c diff --git a/lib/libkvm/Makefile b/lib/libkvm/Makefile index 2cb7690..50b254b 100644 --- a/lib/libkvm/Makefile +++ b/lib/libkvm/Makefile @@ -4,7 +4,8 @@ LIB= kvm SHLIBDIR?= /lib CFLAGS+=-DLIBC_SCCS -I${.CURDIR} -.if ${TARGET} == "sun4v" + +.if ${MACHINE} == "sun4v" CFLAGS+=-DSUN4V .endif -- cgit v1.1