1# $NetBSD: Makefile,v 1.15 2002/12/10 17:59:41 fvdl Exp $ 2 3.include <bsd.own.mk> 4 5PROG= mdsetimage 6SRCS= mdsetimage.c exec_aout.c exec_ecoff.c exec_elf32.c exec_elf64.c \ 7 exec_coff.c 8MAN= mdsetimage.8 9 10.if ${MACHINE_ARCH} == "alpha" 11CPPFLAGS+=-DNLIST_ECOFF 12CPPFLAGS+=-DNLIST_ELF64 13.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" 14CPPFLAGS+=-DNLIST_ECOFF 15CPPFLAGS+=-DNLIST_ELF32 16CPPFLAGS+=-DNLIST_AOUT 17.elif ${MACHINE_ARCH} == "powerpc" 18CPPFLAGS+=-DNLIST_ELF32 19.elif ${MACHINE_ARCH} == "i386" || \ 20 ${MACHINE_ARCH} == "m68k" || \ 21 ${MACHINE_ARCH} == "m68000" || \ 22 ${MACHINE_ARCH} == "vax" || \ 23 ${MACHINE_CPU} == "arm" 24CPPFLAGS+=-DNLIST_ELF32 25CPPFLAGS+=-DNLIST_AOUT 26CPPFLAGS+=-DNLIST_ELF64 27.elif ${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb" 28CPPFLAGS+=-DNLIST_COFF 29CPPFLAGS+=-DNLIST_ELF32 30.elif ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \ 31 ${MACHINE_ARCH} == "x86_64" 32CPPFLAGS+=-DNLIST_ELF64 33CPPFLAGS+=-DNLIST_ELF32 34CPPFLAGS+=-DNLIST_AOUT 35.else 36CPPFLAGS+=-DNLIST_AOUT 37#CPPFLAGS+=-DNLIST_ECOFF 38#CPPFLAGS+=-DNLIST_ELF32 39#CPPFLAGS+=-DNLIST_ELF64 40#CPPFLAGS+=-DNLIST_COFF 41.endif 42 43.include <bsd.prog.mk> 44