1# $NetBSD: Makefile,v 1.6 2009/08/20 15:14:49 tsutsui Exp $ 2 3BINDIR?= /sbin 4WARNS?= 4 5NOMAN= 6 7.include <bsd.own.mk> 8 9PROG= binpatch 10SRCS= binpatch.c 11SRCS+= exec_aout.c exec_ecoff.c exec_elf32.c exec_elf64.c exec_coff.c 12 13#MAN= binpatch.8 # currently it's in src/share/man/man8/man8.atari 14 15MDSETIMAGE=${NETBSDSRCDIR}/usr.sbin/mdsetimage 16CPPFLAGS+= -I${MDSETIMAGE} 17.PATH: ${MDSETIMAGE} 18 19.if ${MACHINE_ARCH} == "alpha" 20CPPFLAGS+=-DNLIST_ECOFF 21CPPFLAGS+=-DNLIST_ELF64 22.elif ${MACHINE_CPU} == "mips" 23CPPFLAGS+=-DNLIST_ECOFF 24CPPFLAGS+=-DNLIST_ELF32 25CPPFLAGS+=-DNLIST_AOUT 26.elif ${MACHINE_ARCH} == "powerpc" 27CPPFLAGS+=-DNLIST_ELF32 28.elif ${MACHINE_ARCH} == "m68k" || \ 29 ${MACHINE_ARCH} == "m68000" || \ 30 ${MACHINE_ARCH} == "vax" || \ 31 ${MACHINE_CPU} == "arm" 32CPPFLAGS+=-DNLIST_ELF32 33CPPFLAGS+=-DNLIST_AOUT 34.elif ${MACHINE_CPU} == "sh3" 35CPPFLAGS+=-DNLIST_COFF 36CPPFLAGS+=-DNLIST_ELF32 37.elif ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \ 38 ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 39CPPFLAGS+=-DNLIST_ELF64 40CPPFLAGS+=-DNLIST_ELF32 41CPPFLAGS+=-DNLIST_AOUT 42.else 43#CPPFLAGS+=-DNLIST_AOUT 44#CPPFLAGS+=-DNLIST_ECOFF 45CPPFLAGS+=-DNLIST_ELF32 46#CPPFLAGS+=-DNLIST_ELF64 47#CPPFLAGS+=-DNLIST_COFF 48.endif 49 50.include <bsd.prog.mk> 51