1# $NetBSD$ 2 3.include <bsd.own.mk> 4 5PROG= crunchide 6SRCS= crunchide.c exec_aout.c exec_coff.c exec_ecoff.c exec_elf32.c \ 7 exec_elf64.c 8 9.if ${MACHINE_ARCH} == "alpha" 10CPPFLAGS+=-DNLIST_ELF64 -DNLIST_ECOFF 11.elif ${MACHINE_ARCH} == "mips" || \ 12 ${MACHINE_ARCH} == "mipsel" || \ 13 ${MACHINE_ARCH} == "mipseb" || \ 14 ${MACHINE_ARCH} == "powerpc" 15CPPFLAGS+=-DNLIST_ELF32 16.elif ${MACHINE_ARCH} == "sh3eb" || ${MACHINE_ARCH} == "sh3el" 17CPPFLAGS+=-DNLIST_ELF32 -DNLIST_COFF 18.elif ${MACHINE_ARCH} == "mips64el" || \ 19 ${MACHINE_ARCH} == "mips64eb" || \ 20 ${MACHINE_ARCH} == "powerpc64" || \ 21 ${MACHINE_ARCH} == "x86_64" 22CPPFLAGS+=-DNLIST_ELF32 -DNLIST_ELF64 23.elif ${MACHINE_ARCH} == "sparc64" 24CPPFLAGS+=-DNLIST_AOUT -DNLIST_ELF32 -DNLIST_ELF64 25.elif ${MACHINE_CPU} == "arm" || \ 26 ${MACHINE_ARCH} == "i386" || \ 27 ${MACHINE_ARCH} == "m68k" || \ 28 ${MACHINE_ARCH} == "m68000" || \ 29 ${MACHINE_ARCH} == "sparc" 30CPPFLAGS+=-DNLIST_AOUT -DNLIST_ELF32 31.else 32CPPFLAGS+=-DNLIST_AOUT 33.endif 34 35.include <bsd.prog.mk> 36