2002-12-10 20:59:41 +03:00
|
|
|
# $NetBSD: Makefile,v 1.15 2002/12/10 17:59:41 fvdl Exp $
|
2001-04-24 23:02:06 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1996-10-04 04:18:55 +04:00
|
|
|
|
1997-01-02 03:33:34 +03:00
|
|
|
PROG= mdsetimage
|
1999-09-12 20:08:13 +04:00
|
|
|
SRCS= mdsetimage.c exec_aout.c exec_ecoff.c exec_elf32.c exec_elf64.c \
|
|
|
|
exec_coff.c
|
1997-01-02 03:33:34 +03:00
|
|
|
MAN= mdsetimage.8
|
1996-10-04 04:18:55 +04:00
|
|
|
|
2000-12-18 23:43:58 +03:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CPPFLAGS+=-DNLIST_ECOFF
|
|
|
|
CPPFLAGS+=-DNLIST_ELF64
|
2001-01-05 04:35:45 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
|
2000-12-18 23:43:58 +03:00
|
|
|
CPPFLAGS+=-DNLIST_ECOFF
|
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
2001-02-18 08:58:35 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "powerpc"
|
2000-12-18 23:43:58 +03:00
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
.elif ${MACHINE_ARCH} == "i386" || \
|
2001-02-18 08:58:35 +03:00
|
|
|
${MACHINE_ARCH} == "m68k" || \
|
2001-12-13 01:19:18 +03:00
|
|
|
${MACHINE_ARCH} == "m68000" || \
|
2001-05-02 00:35:19 +04:00
|
|
|
${MACHINE_ARCH} == "vax" || \
|
2001-04-24 23:02:06 +04:00
|
|
|
${MACHINE_CPU} == "arm"
|
2000-12-18 23:43:58 +03:00
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
2002-12-10 20:59:41 +03:00
|
|
|
CPPFLAGS+=-DNLIST_ELF64
|
2001-01-04 12:43:05 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb"
|
2000-12-18 23:43:58 +03:00
|
|
|
CPPFLAGS+=-DNLIST_COFF
|
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
2002-11-26 01:33:39 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \
|
|
|
|
${MACHINE_ARCH} == "x86_64"
|
2001-06-22 02:57:25 +04:00
|
|
|
CPPFLAGS+=-DNLIST_ELF64
|
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
2000-12-18 23:43:58 +03:00
|
|
|
.else
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
|
|
|
#CPPFLAGS+=-DNLIST_ECOFF
|
|
|
|
#CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
#CPPFLAGS+=-DNLIST_ELF64
|
|
|
|
#CPPFLAGS+=-DNLIST_COFF
|
|
|
|
.endif
|
|
|
|
|
2001-10-22 03:10:46 +04:00
|
|
|
.ifndef HOSTPROG
|
1996-10-04 04:18:55 +04:00
|
|
|
.include <bsd.prog.mk>
|
2001-10-22 03:10:46 +04:00
|
|
|
.endif
|