Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / atari / stand / binpatch / Makefile
blob2b61935b8c9f37e11b10ce7e72ed63a3374ce8aa
1 # $NetBSD$
3 BINDIR?= /sbin
4 WARNS?= 4
6 PROG= binpatch
7 SRCS= binpatch.c
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
11 NOMAN=
13 MDSETIMAGE=${NETBSDSRCDIR}/usr.sbin/mdsetimage
14 CPPFLAGS+= -I${MDSETIMAGE}
15 .PATH: ${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
42 .else
43 #CPPFLAGS+=-DNLIST_AOUT
44 #CPPFLAGS+=-DNLIST_ECOFF
45 CPPFLAGS+=-DNLIST_ELF32
46 #CPPFLAGS+=-DNLIST_ELF64
47 #CPPFLAGS+=-DNLIST_COFF
48 .endif
50 .include <bsd.prog.mk>