2000-12-18 23:43:58 +03:00
|
|
|
# $NetBSD: Makefile,v 1.4 2000/12/18 20:43:58 scw Exp $
|
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
|
|
|
|
.elif ${MACHINE_ARCH} == "mips"
|
|
|
|
CPPFLAGS+=-DNLIST_ECOFF
|
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
|
|
|
.elif ${MACHINE_ARCH} == "powerpc" || \
|
|
|
|
${MACHINE} == "mvme68k"
|
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
.elif ${MACHINE_ARCH} == "i386" || \
|
|
|
|
${MACHINE_ARCH} == "sparc"
|
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
|
|
|
.elif ${MACHINE_ARCH} == "sh3"
|
|
|
|
CPPFLAGS+=-DNLIST_COFF
|
|
|
|
CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
.else
|
|
|
|
CPPFLAGS+=-DNLIST_AOUT
|
|
|
|
#CPPFLAGS+=-DNLIST_ECOFF
|
|
|
|
#CPPFLAGS+=-DNLIST_ELF32
|
|
|
|
#CPPFLAGS+=-DNLIST_ELF64
|
|
|
|
#CPPFLAGS+=-DNLIST_COFF
|
|
|
|
.endif
|
|
|
|
|
1996-10-04 04:18:55 +04:00
|
|
|
.include <bsd.prog.mk>
|