aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/amd/Makefile.inc
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-09-05 16:54:20 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-09-05 16:54:20 +0000
commit1b5546b8736b0f637439db5dbfa85b07030da358 (patch)
tree3e6aa81e060ea60dceaa95b17de72cdd2d261d61 /usr.sbin/amd/Makefile.inc
parent506a5308bcfc3bf31314914a6889ba2611d11673 (diff)
downloadsrc-1b5546b8736b0f637439db5dbfa85b07030da358.tar.gz
src-1b5546b8736b0f637439db5dbfa85b07030da358.zip
Try to determine the OS version and architecture for what is being built
vs. the building machine. PR: 14040
Notes
Notes: svn path=/head/; revision=83090
Diffstat (limited to 'usr.sbin/amd/Makefile.inc')
-rw-r--r--usr.sbin/amd/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/amd/Makefile.inc b/usr.sbin/amd/Makefile.inc
index 186b5085c24c..3ded149cc0c9 100644
--- a/usr.sbin/amd/Makefile.inc
+++ b/usr.sbin/amd/Makefile.inc
@@ -18,6 +18,9 @@ CFLAGS+= -I${.CURDIR}/../../../contrib/amd/include
CFLAGS+= -I${.CURDIR}/../../../contrib/amd
CFLAGS+= -DHAVE_CONFIG_H
+TARGET_ARCH?= ${MACHINE_ARCH}
+CFLAGS+= -DHOST_CPU=\"${TARGET_ARCH}\" -DHOST_ARCH=\"${TARGET_ARCH}\"
+
.if exists(${.OBJDIR}/../libamu)
LIBAMUDIR= ${.OBJDIR}/../libamu
.else