1999-02-13 05:54:17 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 1999/02/13 02:54:48 lukem Exp $
|
1997-04-17 00:28:59 +04:00
|
|
|
|
|
|
|
S= ${.CURDIR}/../../../..
|
|
|
|
|
|
|
|
PROG= ofwboot
|
|
|
|
SRCS= Locore.c boot.c ofdev.c net.c netif_of.c alloc.c
|
1998-05-28 11:56:42 +04:00
|
|
|
.PATH: ${S}/arch/ofppc/ofppc
|
1997-04-17 00:28:59 +04:00
|
|
|
SRCS+= ofwmagic.S
|
1998-06-09 08:27:53 +04:00
|
|
|
.PATH: ${S}/arch/powerpc/powerpc
|
1997-04-17 00:28:59 +04:00
|
|
|
#CFLAGS+= -DDEBUG -DNETIF_DEBUG
|
1999-02-13 05:54:17 +03:00
|
|
|
MKMAN= no
|
1997-04-17 11:46:24 +04:00
|
|
|
STRIPFLAG=
|
1997-04-17 00:28:59 +04:00
|
|
|
BINMODE= 444
|
|
|
|
|
|
|
|
NEWVERSWHAT= "OpenFirmware Boot"
|
|
|
|
|
|
|
|
# For now...
|
|
|
|
RELOC= 20000
|
|
|
|
|
|
|
|
ENTRY= _start
|
|
|
|
|
|
|
|
CLEANFILES+= vers.c vers.o
|
|
|
|
|
1998-06-09 08:27:53 +04:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. -I${.OBJDIR}
|
1997-04-17 00:28:59 +04:00
|
|
|
CPPFLAGS+= -DRELOC=0x${RELOC}
|
|
|
|
CPPFLAGS+= -DFIRMWORKSBUGS
|
|
|
|
CPPFLAGS+= -DPOWERPC_BOOT_AOUT
|
|
|
|
CPPFLAGS+= -DPOWERPC_BOOT_ELF
|
1998-03-02 20:07:53 +03:00
|
|
|
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
|
1997-04-17 00:28:59 +04:00
|
|
|
|
1998-06-09 08:27:53 +04:00
|
|
|
.BEGIN: ${.OBJDIR}/machine
|
|
|
|
depend all: ${.OBJDIR}/machine
|
|
|
|
CLEANFILES+= ${.OBJDIR}/machine
|
|
|
|
|
|
|
|
${.OBJDIR}/machine::
|
|
|
|
-rm -f $@
|
|
|
|
ln -s $S/arch/ofppc/include $@
|
|
|
|
|
1997-04-17 00:28:59 +04:00
|
|
|
### find out what to use for libkern
|
|
|
|
KERN_AS= library
|
|
|
|
.include "${S}/lib/libkern/Makefile.inc"
|
|
|
|
LIBKERN= ${KERNLIB}
|
|
|
|
|
|
|
|
### find out what to use for libz
|
|
|
|
Z_AS= library
|
|
|
|
.include "${S}/lib/libz/Makefile.inc"
|
|
|
|
LIBZ= ${ZLIB}
|
|
|
|
|
|
|
|
### find out what to use for libsa
|
|
|
|
SA_AS= library
|
|
|
|
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
|
|
|
|
.include "${S}/lib/libsa/Makefile.inc"
|
|
|
|
LIBSA= ${SALIB}
|
|
|
|
|
|
|
|
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
|
|
|
sh ${.CURDIR}/../newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
|
|
|
|
${COMPILE.c} vers.c
|
|
|
|
${LD} -X -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
|
|
|
|
${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|