summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchide/Makefile
blob: e328aa412c2c4c97fa08cc738765c881b92adaf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $FreeBSD$

PROG=   crunchide
SRCS=	crunchide.c

NO_PIE=	yes

TARGET_ARCH?=	${MACHINE_ARCH}

.if ${TARGET_ARCH} == i386 && ${MACHINE_ARCH} == i386
CFLAGS+=-DNLIST_AOUT
SRCS+=	exec_aout.c
.endif

.if ${TARGET_ARCH} == amd64 || ${TARGET_ARCH} == powerpc64 || \
    ${TARGET_ARCH} == sparc64 || ${TARGET_ARCH:Mmips64*}
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