Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.10.2.3
      1  1.10.2.3  nathanw #	$NetBSD: Makefile,v 1.10.2.3 2002/04/17 00:04:03 nathanw Exp $
      2  1.10.2.2  nathanw 
      3  1.10.2.2  nathanw S= ${.CURDIR}/../../../..
      4  1.10.2.2  nathanw 
      5  1.10.2.2  nathanw PROG= boot
      6  1.10.2.2  nathanw SRCS= locore.S boot.c bootinfo.c devopen.c net.c netif_news.c
      7  1.10.2.2  nathanw NOMAN= # defined
      8  1.10.2.2  nathanw STRIPFLAG=
      9  1.10.2.2  nathanw BINMODE= 444
     10  1.10.2.2  nathanw 
     11  1.10.2.2  nathanw SIZE?= size
     12  1.10.2.2  nathanw STRIP?= strip
     13  1.10.2.2  nathanw 
     14  1.10.2.2  nathanw .include <bsd.own.mk>
     15  1.10.2.2  nathanw 
     16  1.10.2.2  nathanw COMMON!=  cd ${.CURDIR}/../common && ${PRINTOBJDIR}
     17  1.10.2.2  nathanw 
     18  1.10.2.2  nathanw CLEANFILES+= ${PROG}.elf ${PROG}.tmp
     19  1.10.2.2  nathanw 
     20  1.10.2.2  nathanw LDFLAGS= -x -N -Ttext a0700000 -e _start
     21  1.10.2.3  nathanw CFLAGS= -Os -mmemcpy -mno-abicalls -G 0 -Wall
     22  1.10.2.2  nathanw 
     23  1.10.2.3  nathanw CPPFLAGS+= -DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK
     24  1.10.2.2  nathanw CPPFLAGS+= -DSUN_BOOTPARAMS
     25  1.10.2.2  nathanw CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
     26  1.10.2.2  nathanw CPPFLAGS+= -I${.CURDIR} -I${COMMON} -I${S}
     27  1.10.2.2  nathanw 
     28  1.10.2.2  nathanw AFLAGS= -D_LOCORE
     29  1.10.2.2  nathanw 
     30  1.10.2.2  nathanw LIBS = ${COMMON}/romcalls.o
     31  1.10.2.2  nathanw LIBS+= ${COMMON}/lib/sa/libsa.a
     32  1.10.2.2  nathanw LIBS+= ${COMMON}/lib/z/libz.a
     33  1.10.2.2  nathanw LIBS+= ${COMMON}/lib/kern/libkern.a
     34  1.10.2.2  nathanw 
     35  1.10.2.2  nathanw ${PROG}: ${OBJS}
     36  1.10.2.2  nathanw 	${LD} ${LDFLAGS} -o ${PROG}.elf ${OBJS} ${LIBS}
     37  1.10.2.2  nathanw 	-${SIZE} ${PROG}.elf
     38  1.10.2.2  nathanw 	${STRIP} ${PROG}.elf -o ${PROG}
     39  1.10.2.2  nathanw 	tail -c +177 ${PROG} > ${PROG}.tmp
     40  1.10.2.2  nathanw 	mv ${PROG}.tmp ${PROG}
     41  1.10.2.2  nathanw #	${OBJCOPY} -O binary ${PROG}.elf ${PROG}	# XXX
     42  1.10.2.2  nathanw 
     43  1.10.2.2  nathanw .include <bsd.prog.mk>
     44