Home | History | Annotate | Line # | Download | only in xxboot
Makefile revision 1.1.8.1
      1  1.1.8.1  bouyer #	$NetBSD: Makefile,v 1.1.8.1 2000/11/20 20:32:41 bouyer Exp $
      2      1.1   ragge 
      3  1.1.8.1  bouyer S=	${.CURDIR}/../../../..
      4      1.1   ragge 
      5      1.1   ragge PROG=	xxboot
      6      1.1   ragge LINKS=	${BINDIR}/xxboot ${BINDIR}/raboot 
      7      1.1   ragge LINKS+=	${BINDIR}/xxboot ${BINDIR}/rdboot
      8      1.1   ragge LINKS+=	${BINDIR}/xxboot ${BINDIR}/sdboot
      9      1.1   ragge LINKS+=	${BINDIR}/xxboot ${BINDIR}/hpboot
     10  1.1.8.1  bouyer WARNS?=	1
     11      1.1   ragge 
     12      1.1   ragge SRCS=	start.s bootxx.c romread.s urem.s udiv.s str.s
     13      1.1   ragge 
     14      1.1   ragge STRIPFLAG=
     15  1.1.8.1  bouyer CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \
     16  1.1.8.1  bouyer 	-DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \
     17  1.1.8.1  bouyer 	-DLIBSA_NO_COMPAT_UFS \
     18  1.1.8.1  bouyer 	-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_CLOSE \
     19  1.1.8.1  bouyer 	-DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK
     20      1.1   ragge BINDIR=	/usr/mdec
     21      1.1   ragge NOMAN=	1
     22      1.1   ragge 
     23  1.1.8.1  bouyer CFLAGS=	-Os
     24  1.1.8.1  bouyer 
     25      1.1   ragge SA_AS=	library
     26      1.1   ragge .include "${S}/lib/libsa/Makefile.inc"
     27      1.1   ragge LIBSA=	${SALIB}
     28      1.1   ragge 
     29  1.1.8.1  bouyer KERN_AS=library
     30  1.1.8.1  bouyer .include "${S}/lib/libkern/Makefile.inc"
     31  1.1.8.1  bouyer LIBKERN=${KERNLIB}
     32  1.1.8.1  bouyer 
     33  1.1.8.1  bouyer .if ${MACHINE} == "vax"
     34  1.1.8.1  bouyer .BEGIN:
     35  1.1.8.1  bouyer 	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
     36  1.1.8.1  bouyer 	@[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
     37  1.1.8.1  bouyer .NOPATH: machine ${MACHINE_ARCH}
     38  1.1.8.1  bouyer CLEANFILES+= machine ${MACHINE_ARCH}
     39  1.1.8.1  bouyer .endif
     40  1.1.8.1  bouyer 
     41  1.1.8.1  bouyer ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     42  1.1.8.1  bouyer ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
     43  1.1.8.1  bouyer 	${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN}
     44  1.1.8.1  bouyer 	${OBJCOPY} -O binary ${PROG}.out ${PROG}
     45      1.1   ragge 
     46      1.1   ragge .include <bsd.prog.mk>
     47