summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchide/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-04-30 09:34:53 +0000
committerru <ru@FreeBSD.org>2002-04-30 09:34:53 +0000
commitd2cb56e26ce9b15e3b6f97b81a3ffe0555f63dd6 (patch)
treee675fa2c0c3c637a8bffa06bf11440ad780ddec6 /usr.sbin/crunch/crunchide/Makefile
parentb6b2470fee2f571cb813096fa5097867bdc21e83 (diff)
downloadFreeBSD-src-d2cb56e26ce9b15e3b6f97b81a3ffe0555f63dd6.zip
FreeBSD-src-d2cb56e26ce9b15e3b6f97b81a3ffe0555f63dd6.tar.gz
Make crunchide(1) a cross-tool; needed for cross-arch "make release".
Note that a.out is only supported for the non-cross i386 case.
Diffstat (limited to 'usr.sbin/crunch/crunchide/Makefile')
-rw-r--r--usr.sbin/crunch/crunchide/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/crunch/crunchide/Makefile b/usr.sbin/crunch/crunchide/Makefile
index 8af6b33..ae91f3e 100644
--- a/usr.sbin/crunch/crunchide/Makefile
+++ b/usr.sbin/crunch/crunchide/Makefile
@@ -3,8 +3,10 @@
PROG= crunchide
SRCS= crunchide.c exec_elf32.c exec_elf64.c
-.if ${MACHINE_ARCH} == i386
+TARGET_ARCH?= ${MACHINE_ARCH}
+.if ${TARGET_ARCH} == i386 && ${MACHINE_ARCH} == i386
SRCS+= exec_aout.c
.endif
+CFLAGS+=-Darch_${TARGET_ARCH}
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud