xref: /freebsd/usr.sbin/crunch/crunchide/Makefile (revision a2acc4137998ab1ebe96b1d9c1fefc031091bc51)
190e655eaSDavid E. O'Brien# $FreeBSD$
2de566360SJordan K. Hubbard
3de566360SJordan K. HubbardPROG=   crunchide
4a2acc413SRuslan ErmilovSRCS=	crunchide.c
52b30bcbbSPeter Wemm
664b06e78SRuslan ErmilovTARGET_ARCH?=	${MACHINE_ARCH}
7a2acc413SRuslan Ermilov
864b06e78SRuslan Ermilov.if ${TARGET_ARCH} == i386 && ${MACHINE_ARCH} == i386
9a2acc413SRuslan ErmilovCFLAGS+=-DNLIST_AOUT
102b30bcbbSPeter WemmSRCS+=	exec_aout.c
112b30bcbbSPeter Wemm.endif
12a2acc413SRuslan Ermilov
13a2acc413SRuslan Ermilov.if ${TARGET_ARCH} == alpha || ${TARGET_ARCH} == ia64 || \
14a2acc413SRuslan Ermilov    ${TARGET_ARCH} == sparc64
15a2acc413SRuslan ErmilovCFLAGS+=-DNLIST_ELF64
16a2acc413SRuslan ErmilovSRCS+=	exec_elf64.c
17a2acc413SRuslan Ermilovexec_elf64.o: exec_elf32.c
18a2acc413SRuslan Ermilov.else
19a2acc413SRuslan ErmilovCFLAGS+=-DNLIST_ELF32
20a2acc413SRuslan ErmilovSRCS+=	exec_elf32.c
21a2acc413SRuslan Ermilov.endif
222ec21a68SJordan K. Hubbard
23de566360SJordan K. Hubbard.include <bsd.prog.mk>
24