summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchide/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-05-25 13:39:20 +0000
committerru <ru@FreeBSD.org>2002-05-25 13:39:20 +0000
commit4eb7a2371e4c31f0df6ef14a3f83f8f7d25f7049 (patch)
tree56efa843361933aa9d5aa0ec09828f04be8622c1 /usr.sbin/crunch/crunchide/Makefile
parent6e02fb840443f42eaf8103794237ed1897c9b22e (diff)
downloadFreeBSD-src-4eb7a2371e4c31f0df6ef14a3f83f8f7d25f7049.zip
FreeBSD-src-4eb7a2371e4c31f0df6ef14a3f83f8f7d25f7049.tar.gz
Get all the fruit from makefile.
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