1 1.1.2.2 nathanw # $NetBSD: Makefile,v 1.1.2.2 2002/04/17 00:04:38 nathanw Exp $ 2 1.1.2.2 nathanw 3 1.1.2.2 nathanw S= ${.CURDIR}/../../../.. 4 1.1.2.2 nathanw 5 1.1.2.2 nathanw .PATH: ${.CURDIR}/../xxboot 6 1.1.2.2 nathanw 7 1.1.2.2 nathanw PROG= xxboot_ustarfs 8 1.1.2.2 nathanw WARNS?= 1 9 1.1.2.2 nathanw 10 1.1.2.2 nathanw SRCS= start.S bootxx.c romread.S str.S 11 1.1.2.2 nathanw 12 1.1.2.2 nathanw STRIPFLAG= 13 1.1.2.2 nathanw CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \ 14 1.1.2.2 nathanw -DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \ 15 1.1.2.2 nathanw -DLIBSA_NO_COMPAT_UFS \ 16 1.1.2.2 nathanw -DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_CLOSE \ 17 1.1.2.2 nathanw -DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK \ 18 1.1.2.2 nathanw -DNEED_USTARFS 19 1.1.2.2 nathanw BINDIR= /usr/mdec 20 1.1.2.2 nathanw NOMAN= # defined 21 1.1.2.2 nathanw 22 1.1.2.2 nathanw CFLAGS= -Os 23 1.1.2.2 nathanw 24 1.1.2.2 nathanw SA_AS= library 25 1.1.2.2 nathanw .include "${S}/lib/libsa/Makefile.inc" 26 1.1.2.2 nathanw LIBSA= ${SALIB} 27 1.1.2.2 nathanw 28 1.1.2.2 nathanw KERN_AS=library 29 1.1.2.2 nathanw .include "${S}/lib/libkern/Makefile.inc" 30 1.1.2.2 nathanw LIBKERN=${KERNLIB} 31 1.1.2.2 nathanw 32 1.1.2.2 nathanw .if ${MACHINE} == "vax" 33 1.1.2.2 nathanw .PHONY: machine-links 34 1.1.2.2 nathanw beforedepend: machine-links 35 1.1.2.2 nathanw machine-links: 36 1.1.2.2 nathanw @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine 37 1.1.2.2 nathanw @[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} 38 1.1.2.2 nathanw .NOPATH: machine ${MACHINE_ARCH} 39 1.1.2.2 nathanw CLEANFILES+= machine ${MACHINE_ARCH} 40 1.1.2.2 nathanw .endif 41 1.1.2.2 nathanw 42 1.1.2.2 nathanw ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 43 1.1.2.2 nathanw ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN} 44 1.1.2.2 nathanw ${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN} 45 1.1.2.2 nathanw ${SIZE} ${PROG}.out 46 1.1.2.2 nathanw ${OBJCOPY} -O binary ${PROG}.out ${PROG} 47 1.1.2.2 nathanw 48 1.1.2.2 nathanw .include <bsd.prog.mk> 49