2002-12-05 04:38:26 +03:00
|
|
|
# $NetBSD: Makefile,v 1.14 2002/12/05 01:38:26 fvdl Exp $
|
2001-06-30 18:52:42 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1994-08-29 18:47:29 +04:00
|
|
|
|
|
|
|
PROG= crunchide
|
1999-11-26 16:47:52 +03:00
|
|
|
SRCS= crunchide.c exec_aout.c exec_coff.c exec_ecoff.c exec_elf32.c \
|
|
|
|
exec_elf64.c
|
1994-08-29 18:47:29 +04:00
|
|
|
|
2000-12-18 11:51:39 +03:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CPPFLAGS+=-DNLIST_ELF64 -DNLIST_ECOFF
|
2001-06-30 18:52:42 +04:00
|
|
|
.elif ${MACHINE_ARCH} == "mips" || \
|
2000-12-23 12:06:06 +03:00
|
|
|
${MACHINE_ARCH} == "mipsel" || \
|
|
|
|
${MACHINE_ARCH} == "mipseb" || \
|
2001-02-18 08:22:46 +03:00
|
|
|
${MACHINE_ARCH} == "powerpc"
|
2000-12-18 11:51:39 +03:00
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
2001-01-04 12:43:05 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "sh3eb" || ${MACHINE_ARCH} == "sh3el"
|
2000-12-18 11:51:39 +03:00
|
|
|
CPPFLAGS+=-DNLIST_ELF32 -DNLIST_COFF
|
2002-12-05 04:38:26 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "sh5eb" || \
|
|
|
|
${MACHINE_ARCH} == "sh5el" || \
|
|
|
|
${MACHINE_ARCH} == "x86_64"
|
2002-07-12 01:46:21 +04:00
|
|
|
CPPFLAGS+=-DNLIST_ELF32 -DNLIST_ELF64
|
2000-12-18 11:51:39 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "sparc64"
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT -DNLIST_ELF32 -DNLIST_ELF64
|
2001-06-30 18:52:42 +04:00
|
|
|
.elif ${MACHINE_CPU} == "arm" || \
|
|
|
|
${MACHINE_ARCH} == "i386" || \
|
2001-02-18 08:22:46 +03:00
|
|
|
${MACHINE_ARCH} == "m68k" || \
|
2001-12-13 01:14:46 +03:00
|
|
|
${MACHINE_ARCH} == "m68000" || \
|
2001-02-18 08:22:46 +03:00
|
|
|
${MACHINE_ARCH} == "sparc"
|
2000-12-18 11:51:39 +03:00
|
|
|
CPPFLAGS+=-DNLIST_AOUT -DNLIST_ELF32
|
|
|
|
.else
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
|
|
|
.endif
|
|
|
|
|
1994-08-29 18:47:29 +04:00
|
|
|
.include <bsd.prog.mk>
|