diff options
author | ru <ru@FreeBSD.org> | 2002-04-30 09:34:53 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-30 09:34:53 +0000 |
commit | d2cb56e26ce9b15e3b6f97b81a3ffe0555f63dd6 (patch) | |
tree | e675fa2c0c3c637a8bffa06bf11440ad780ddec6 /usr.sbin/crunch/crunchide/Makefile | |
parent | b6b2470fee2f571cb813096fa5097867bdc21e83 (diff) | |
download | FreeBSD-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/Makefile | 4 |
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> |