1 1.1.2.3 nathanw # $NetBSD: Makefile,v 1.1.2.3 2002/06/20 03:42:09 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.3 nathanw CFLAGS= -Os -ffreestanding 23 1.1.2.3 nathanw LIBC= 24 1.1.2.2 nathanw 25 1.1.2.2 nathanw SA_AS= library 26 1.1.2.2 nathanw .include "${S}/lib/libsa/Makefile.inc" 27 1.1.2.2 nathanw LIBSA= ${SALIB} 28 1.1.2.2 nathanw 29 1.1.2.2 nathanw KERN_AS=library 30 1.1.2.2 nathanw .include "${S}/lib/libkern/Makefile.inc" 31 1.1.2.2 nathanw LIBKERN=${KERNLIB} 32 1.1.2.2 nathanw 33 1.1.2.2 nathanw .if ${MACHINE} == "vax" 34 1.1.2.2 nathanw .PHONY: machine-links 35 1.1.2.2 nathanw beforedepend: machine-links 36 1.1.2.2 nathanw machine-links: 37 1.1.2.2 nathanw @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine 38 1.1.2.2 nathanw @[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} 39 1.1.2.2 nathanw .NOPATH: machine ${MACHINE_ARCH} 40 1.1.2.2 nathanw CLEANFILES+= machine ${MACHINE_ARCH} 41 1.1.2.2 nathanw .endif 42 1.1.2.3 nathanw CLEANFILES+= ${PROG}.out 43 1.1.2.2 nathanw 44 1.1.2.2 nathanw ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 45 1.1.2.2 nathanw ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN} 46 1.1.2.2 nathanw ${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN} 47 1.1.2.2 nathanw ${SIZE} ${PROG}.out 48 1.1.2.2 nathanw ${OBJCOPY} -O binary ${PROG}.out ${PROG} 49 1.1.2.2 nathanw 50 1.1.2.2 nathanw .include <bsd.prog.mk> 51