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