Home | History | Annotate | Line # | Download | only in ofwboot
Makefile revision 1.7.2.1
      1  1.7.2.1    bouyer #	$NetBSD: Makefile,v 1.7.2.1 2000/11/20 20:18:43 bouyer Exp $
      2      1.1   thorpej 
      3      1.1   thorpej S=	${.CURDIR}/../../../..
      4      1.1   thorpej 
      5      1.1   thorpej PROG=		ofwboot
      6  1.7.2.1    bouyer SRCS=		Locore.c boot.c ofdev.c net.c netif_of.c alloc.c vers.c
      7      1.4  sakamoto .PATH:		${S}/arch/ofppc/ofppc
      8      1.1   thorpej SRCS+=		ofwmagic.S
      9      1.5  sakamoto .PATH:		${S}/arch/powerpc/powerpc
     10      1.1   thorpej #CFLAGS+=	-DDEBUG -DNETIF_DEBUG
     11      1.6     lukem MKMAN=		no
     12      1.2   thorpej STRIPFLAG=
     13      1.1   thorpej BINMODE=	444
     14      1.1   thorpej 
     15      1.1   thorpej NEWVERSWHAT=	"OpenFirmware Boot"
     16      1.1   thorpej 
     17      1.1   thorpej # For now...
     18      1.1   thorpej RELOC=		20000
     19      1.1   thorpej 
     20      1.1   thorpej ENTRY=		_start
     21      1.1   thorpej 
     22  1.7.2.1    bouyer CLEANFILES+=	vers.c
     23      1.1   thorpej 
     24      1.5  sakamoto CPPFLAGS+=	-I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. -I${.OBJDIR}
     25      1.1   thorpej CPPFLAGS+=	-DRELOC=0x${RELOC}
     26      1.1   thorpej CPPFLAGS+=	-DFIRMWORKSBUGS
     27      1.1   thorpej CPPFLAGS+=	-DPOWERPC_BOOT_AOUT
     28      1.1   thorpej CPPFLAGS+=	-DPOWERPC_BOOT_ELF
     29      1.3  drochner CPPFLAGS+=	-DCOMPAT_386BSD_MBRPART
     30      1.1   thorpej 
     31      1.7  wrstuden .BEGIN:
     32      1.7  wrstuden 	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
     33      1.7  wrstuden 	@[ -h powerpc ] || ln -s ${S}/arch/powerpc/include powerpc
     34  1.7.2.1    bouyer .NOPATH: machine powerpc
     35  1.7.2.1    bouyer CLEANFILES+= machine powerpc
     36      1.5  sakamoto 
     37      1.1   thorpej ### find out what to use for libkern
     38      1.1   thorpej KERN_AS=	library
     39      1.1   thorpej .include "${S}/lib/libkern/Makefile.inc"
     40      1.1   thorpej LIBKERN=	${KERNLIB}
     41      1.1   thorpej 
     42      1.1   thorpej ### find out what to use for libz
     43      1.1   thorpej Z_AS=		library
     44      1.1   thorpej .include "${S}/lib/libz/Makefile.inc"
     45      1.1   thorpej LIBZ=		${ZLIB}
     46      1.1   thorpej 
     47      1.1   thorpej ### find out what to use for libsa
     48      1.1   thorpej SA_AS=		library
     49      1.1   thorpej SAMISCMAKEFLAGS= SA_USE_CREAD=yes
     50      1.1   thorpej .include "${S}/lib/libsa/Makefile.inc"
     51      1.1   thorpej LIBSA=		${SALIB}
     52      1.1   thorpej 
     53  1.7.2.1    bouyer .PHONY: vers.c
     54  1.7.2.1    bouyer vers.c: version
     55  1.7.2.1    bouyer 	sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version "ofppc" ${NEWVERSWHAT}
     56  1.7.2.1    bouyer 	
     57      1.1   thorpej ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     58      1.1   thorpej 	${LD} -X -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
     59  1.7.2.1    bouyer 	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     60      1.1   thorpej 
     61      1.1   thorpej .include <bsd.prog.mk>
     62