Home | History | Annotate | Line # | Download | only in bootxx
Makefile revision 1.4.2.5
      1  1.4.2.5  thorpej #	$NetBSD: Makefile,v 1.4.2.5 2002/12/11 06:11:29 thorpej Exp $
      2  1.4.2.2  nathanw 
      3  1.4.2.2  nathanw PROG= bootxx
      4  1.4.2.2  nathanw SRCS= start.S bootxx.c
      5  1.4.2.2  nathanw NOMAN= # defined
      6  1.4.2.2  nathanw STRIPFLAG=
      7  1.4.2.2  nathanw BINMODE= 444
      8  1.4.2.5  thorpej WARNS?= 1
      9  1.4.2.2  nathanw SIZE?= size
     10  1.4.2.2  nathanw 
     11  1.4.2.2  nathanw .include <bsd.own.mk>
     12  1.4.2.2  nathanw 
     13  1.4.2.2  nathanw COMMON!=  cd ${.CURDIR}/../common && ${PRINTOBJDIR}
     14  1.4.2.2  nathanw 
     15  1.4.2.2  nathanw LDFLAGS= -x -N -Ttext a0004000 -e _start
     16  1.4.2.5  thorpej CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0
     17  1.4.2.2  nathanw 
     18  1.4.2.2  nathanw CPPFLAGS+= -D_STANDALONE #-DBOOTXX_DEBUG
     19  1.4.2.4  nathanw CPPFLAGS+= -nostdinc -I${COMMON} -I${.CURDIR}/../../../..
     20  1.4.2.2  nathanw 
     21  1.4.2.5  thorpej AFLAGS= -D_LOCORE -mno-abicalls
     22  1.4.2.2  nathanw 
     23  1.4.2.4  nathanw CLEANFILES+= machine mips ${PROG}.sym
     24  1.4.2.4  nathanw CLEANFILES+= ${PROG}.bin ${PROG}.tmp
     25  1.4.2.4  nathanw 
     26  1.4.2.2  nathanw LIBS=  ${COMMON}/romcalls.o
     27  1.4.2.2  nathanw LIBS+= ${COMMON}/lib/sa/libsa.a ${COMMON}/lib/kern/libkern.a
     28  1.4.2.2  nathanw 
     29  1.4.2.2  nathanw ${PROG}: ${OBJS}
     30  1.4.2.4  nathanw 	${LD} ${LDFLAGS} -o ${.TARGET}.sym ${OBJS} ${LIBS}
     31  1.4.2.4  nathanw 	${SIZE} ${.TARGET}.sym
     32  1.4.2.4  nathanw # XXX objcopy does not work for prog at KSEG
     33  1.4.2.4  nathanw #	${OBJCOPY} -O binary ${.TARGET}.sym ${.TARGET}
     34  1.4.2.4  nathanw 	${STRIP} ${.TARGET}.sym -o ${.TARGET}.tmp
     35  1.4.2.4  nathanw 	tail -c +177 ${.TARGET}.tmp > ${.TARGET}.bin
     36  1.4.2.4  nathanw 	mv ${.TARGET}.bin ${.TARGET}
     37  1.4.2.2  nathanw 
     38  1.4.2.2  nathanw .include <bsd.prog.mk>
     39