1# $FreeBSD$ 2 3PROG= crunchide 4SRCS= crunchide.c 5 6# These assignments duplicate much of the functionality of 7# MACHINE_CPUARCH, but there's no easy way to export make functions... 8 9.if defined(TARGET_ARCH) 10TARGET_CPUARCH=${TARGET_ARCH:C/mipse[bl]/mips/:C/armeb/arm/} 11.else 12TARGET_CPUARCH=${MACHINE_CPUARCH} 13.endif 14TARGET_ARCH?= ${MACHINE_ARCH} 15 16.if ${TARGET_ARCH} == i386 && ${MACHINE_ARCH} == i386 17CFLAGS+=-DNLIST_AOUT 18SRCS+= exec_aout.c 19.endif 20 21# nb: TARGET_ARCH for powerpc64 is correct here 22.if ${TARGET_CPUARCH} == ia64 || ${TARGET_ARCH} == powerpc64 || \ 23 ${TARGET_CPUARCH} == sparc64 || ${TARGET_CPUARCH} == amd64 24CFLAGS+=-DNLIST_ELF64 25SRCS+= exec_elf64.c 26exec_elf64.o: exec_elf32.c 27.else 28CFLAGS+=-DNLIST_ELF32 29SRCS+= exec_elf32.c 30.endif 31 32.include <bsd.prog.mk> 33