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