summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchide/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/crunch/crunchide/Makefile')
-rw-r--r--usr.sbin/crunch/crunchide/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/usr.sbin/crunch/crunchide/Makefile b/usr.sbin/crunch/crunchide/Makefile
index ae91f3e..7b6abed 100644
--- a/usr.sbin/crunch/crunchide/Makefile
+++ b/usr.sbin/crunch/crunchide/Makefile
@@ -1,12 +1,23 @@
# $FreeBSD$
PROG= crunchide
-SRCS= crunchide.c exec_elf32.c exec_elf64.c
+SRCS= crunchide.c
TARGET_ARCH?= ${MACHINE_ARCH}
+
.if ${TARGET_ARCH} == i386 && ${MACHINE_ARCH} == i386
+CFLAGS+=-DNLIST_AOUT
SRCS+= exec_aout.c
.endif
-CFLAGS+=-Darch_${TARGET_ARCH}
+
+.if ${TARGET_ARCH} == alpha || ${TARGET_ARCH} == ia64 || \
+ ${TARGET_ARCH} == sparc64
+CFLAGS+=-DNLIST_ELF64
+SRCS+= exec_elf64.c
+exec_elf64.o: exec_elf32.c
+.else
+CFLAGS+=-DNLIST_ELF32
+SRCS+= exec_elf32.c
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud