1 1.10.8.3 nathanw # $NetBSD: Makefile,v 1.10.8.3 2002/02/28 04:12:28 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.2 nathanw -DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK 20 1.10.8.2 nathanw BINDIR= /usr/mdec 21 1.10.8.2 nathanw NOMAN= # defined 22 1.10.8.2 nathanw 23 1.10.8.2 nathanw CFLAGS= -Os 24 1.10.8.2 nathanw 25 1.10.8.2 nathanw SA_AS= library 26 1.10.8.2 nathanw .include "${S}/lib/libsa/Makefile.inc" 27 1.10.8.2 nathanw LIBSA= ${SALIB} 28 1.10.8.2 nathanw 29 1.10.8.2 nathanw KERN_AS=library 30 1.10.8.2 nathanw .include "${S}/lib/libkern/Makefile.inc" 31 1.10.8.2 nathanw LIBKERN=${KERNLIB} 32 1.10.8.2 nathanw 33 1.10.8.2 nathanw .if ${MACHINE} == "vax" 34 1.10.8.2 nathanw .PHONY: machine-links 35 1.10.8.2 nathanw beforedepend: machine-links 36 1.10.8.2 nathanw machine-links: 37 1.10.8.2 nathanw @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine 38 1.10.8.2 nathanw @[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} 39 1.10.8.2 nathanw .NOPATH: machine ${MACHINE_ARCH} 40 1.10.8.2 nathanw CLEANFILES+= machine ${MACHINE_ARCH} 41 1.10.8.2 nathanw .endif 42 1.10.8.2 nathanw 43 1.10.8.2 nathanw ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 44 1.10.8.2 nathanw ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN} 45 1.10.8.2 nathanw ${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN} 46 1.10.8.2 nathanw ${OBJCOPY} -O binary ${PROG}.out ${PROG} 47 1.10.8.2 nathanw 48 1.10.8.2 nathanw .include <bsd.prog.mk> 49