Home | History | Annotate | Line # | Download | only in stand
Makefile.booters revision 1.22.10.1
      1 # $NetBSD: Makefile.booters,v 1.22.10.1 2017/04/26 02:53:06 pgoyette Exp $
      2 
      3 # PROG set by parent.
      4 NOMAN=		# defined
      5 
      6 .include <bsd.own.mk>
      7 .include <bsd.sys.mk>		# for HOST_SH
      8 
      9 # $S must correspond to the top of the 'sys' tree
     10 S=	${.CURDIR}/../../../..
     11 
     12 BINMODE?=	444
     13 
     14 # XXX SHOULD NOT NEED TO DEFINE THESE!
     15 LIBCRT0=
     16 LIBCRTI=
     17 LIBC=
     18 LIBCRTBEGIN=
     19 LIBCRTEND=
     20 
     21 realall: ${PROG}
     22 
     23 .PATH:		${.CURDIR}/../common
     24 .PATH.S:	${S}/dev/arcbios
     25 AFLAGS+=	-D_LOCORE -D_KERNEL -mno-abicalls
     26 CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S}
     27 # compiler flags for smallest code size
     28 CFLAGS=		-ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024
     29 .if ${MACHINE_ARCH} == "mips64eb"
     30 AFLAGS+=	-mips3 -mabi=32
     31 CFLAGS+=	-mips3 -mabi=32
     32 .endif
     33 CWARNFLAGS+=	-Wall -Werror
     34 CWARNFLAGS+=	-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
     35 CWARNFLAGS+=	-Wno-pointer-sign
     36 LDBUG=		-T $S/arch/mips/conf/stand.ldscript
     37 NETBSD_VERS!=	${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh
     38 CPPFLAGS+=	-DNETBSD_VERS='"${NETBSD_VERS}"'
     39 
     40 CPPFLAGS+=	-Dsgimips
     41 
     42 .include "${S}/dev/arcbios/Makefile.inc"
     43 
     44 # We load the kernel at 420K in from the start of RAM to give the boot
     45 # loader plenty of breathing room.  Load the boot loader starting at
     46 # the second page of RAM.
     47 # A warm thank-you to SGI for making load addresses different :)
     48 LOAD_ADDRESS?=		0x88002000
     49 LOAD_ADDRESS_IP32?=	0x80002000
     50 
     51 .include "${S}/conf/newvers_stand.mk"
     52 
     53 ### find out what to use for libkern
     54 KERN_AS=	library
     55 .include "${S}/lib/libkern/Makefile.inc"
     56 LIBKERN=	${KERNLIB}
     57 
     58 ### find out what to use for libz
     59 Z_AS=		library
     60 .include "${S}/lib/libz/Makefile.inc"
     61 LIBZ=		${ZLIB}
     62 
     63 ### find out what to use for libsa
     64 SA_AS=		library
     65 SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes
     66 # for now:
     67 SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
     68 .include "${S}/lib/libsa/Makefile.inc"
     69 LIBSA=		${SALIB}
     70 
     71 
     72 LIBS=		${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
     73 
     74 .include <bsd.klinks.mk>
     75 .include <bsd.prog.mk>
     76