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