summaryrefslogtreecommitdiffstats
path: root/usr.sbin/amd/Makefile.inc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-09-05 16:54:20 +0000
committerobrien <obrien@FreeBSD.org>2001-09-05 16:54:20 +0000
commita561987dd6caa921f2dae7bb9a5a4570e1042c8e (patch)
tree3e6aa81e060ea60dceaa95b17de72cdd2d261d61 /usr.sbin/amd/Makefile.inc
parent9d8a805762329a53d281cceb6a882df9f8f81326 (diff)
downloadFreeBSD-src-a561987dd6caa921f2dae7bb9a5a4570e1042c8e.zip
FreeBSD-src-a561987dd6caa921f2dae7bb9a5a4570e1042c8e.tar.gz
Try to determine the OS version and architecture for what is being built
vs. the building machine. PR: 14040
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 186b508..3ded149 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
OpenPOWER on IntegriCloud