8 SRCS
+= exec_aout.c exec_ecoff.c exec_elf32.c exec_elf64.c exec_coff.c
10 #MAN= binpatch.8 # currently it's in src/share/man/man8/man8.atari
13 MDSETIMAGE
=${NETBSDSRCDIR}/usr.sbin
/mdsetimage
14 CPPFLAGS
+= -I
${MDSETIMAGE}
17 .
include <bsd.own.mk
> # for ${MACHINE_CPU}
19 .if
${MACHINE_ARCH} == "alpha"
20 CPPFLAGS
+=-DNLIST_ECOFF
21 CPPFLAGS
+=-DNLIST_ELF64
22 .elif
${MACHINE_CPU} == "mips"
23 CPPFLAGS
+=-DNLIST_ECOFF
24 CPPFLAGS
+=-DNLIST_ELF32
25 CPPFLAGS
+=-DNLIST_AOUT
26 .elif
${MACHINE_ARCH} == "powerpc"
27 CPPFLAGS
+=-DNLIST_ELF32
28 .elif
${MACHINE_ARCH} == "m68k" || \
29 ${MACHINE_ARCH} == "m68000" || \
30 ${MACHINE_ARCH} == "vax" || \
31 ${MACHINE_CPU} == "arm"
32 CPPFLAGS
+=-DNLIST_ELF32
33 CPPFLAGS
+=-DNLIST_AOUT
34 .elif
${MACHINE_CPU} == "sh3"
35 CPPFLAGS
+=-DNLIST_COFF
36 CPPFLAGS
+=-DNLIST_ELF32
37 .elif
${MACHINE_ARCH} == "sparc" ||
${MACHINE_ARCH} == "sparc64" || \
38 ${MACHINE_ARCH} == "i386" ||
${MACHINE_ARCH} == "x86_64"
39 CPPFLAGS
+=-DNLIST_ELF64
40 CPPFLAGS
+=-DNLIST_ELF32
41 CPPFLAGS
+=-DNLIST_AOUT
43 #CPPFLAGS+=-DNLIST_AOUT
44 #CPPFLAGS+=-DNLIST_ECOFF
45 CPPFLAGS
+=-DNLIST_ELF32
46 #CPPFLAGS+=-DNLIST_ELF64
47 #CPPFLAGS+=-DNLIST_COFF
50 .
include <bsd.prog.mk
>