Home | History | Annotate | Line # | Download | only in xxboot
Makefile revision 1.17
      1  1.17     matt #	$NetBSD: Makefile,v 1.17 2003/02/04 13:21:49 matt Exp $
      2   1.1    ragge 
      3   1.6     matt S=	${.CURDIR}/../../../..
      4   1.1    ragge 
      5   1.1    ragge PROG=	xxboot
      6   1.1    ragge LINKS=	${BINDIR}/xxboot ${BINDIR}/raboot 
      7   1.1    ragge LINKS+=	${BINDIR}/xxboot ${BINDIR}/rdboot
      8   1.1    ragge LINKS+=	${BINDIR}/xxboot ${BINDIR}/sdboot
      9   1.1    ragge LINKS+=	${BINDIR}/xxboot ${BINDIR}/hpboot
     10   1.5    ragge WARNS?=	1
     11   1.1    ragge 
     12  1.12     matt SRCS=	start.S bootxx.c romread.S str.S
     13   1.1    ragge 
     14   1.1    ragge STRIPFLAG=
     15   1.2    ragge CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \
     16   1.2    ragge 	-DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \
     17   1.5    ragge 	-DLIBSA_NO_COMPAT_UFS \
     18   1.5    ragge 	-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_CLOSE \
     19  1.13     matt 	-DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK \
     20  1.13     matt 	-DNEED_UFS -DNEED_CD9660
     21  1.17     matt # Use small daddr_t to avoid code bloat
     22  1.17     matt CPPFLAGS+=-D__daddr_t=int32_t
     23   1.1    ragge BINDIR=	/usr/mdec
     24  1.11       tv NOMAN=	# defined
     25   1.4     matt 
     26  1.16  thorpej CFLAGS=	-Os -ffreestanding -mno-asm-pic
     27  1.16  thorpej AFLAGS= -mno-asm-pic
     28  1.14     matt LIBC=
     29   1.1    ragge 
     30   1.1    ragge SA_AS=	library
     31   1.1    ragge .include "${S}/lib/libsa/Makefile.inc"
     32   1.1    ragge LIBSA=	${SALIB}
     33   1.1    ragge 
     34   1.5    ragge KERN_AS=library
     35   1.5    ragge .include "${S}/lib/libkern/Makefile.inc"
     36   1.5    ragge LIBKERN=${KERNLIB}
     37   1.5    ragge 
     38   1.9     matt .if ${MACHINE} == "vax"
     39  1.10     matt .PHONY: machine-links
     40  1.10     matt beforedepend: machine-links
     41  1.10     matt machine-links:
     42   1.7     matt 	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
     43   1.7     matt 	@[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
     44   1.7     matt .NOPATH: machine ${MACHINE_ARCH}
     45   1.7     matt CLEANFILES+= machine ${MACHINE_ARCH}
     46   1.9     matt .endif
     47  1.15     matt CLEANFILES+= ${PROG}.out
     48   1.7     matt 
     49   1.7     matt ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     50   1.5    ragge ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
     51   1.8     matt 	${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN}
     52  1.13     matt 	${SIZE} ${PROG}.out
     53   1.8     matt 	${OBJCOPY} -O binary ${PROG}.out ${PROG}
     54   1.1    ragge 
     55   1.1    ragge .include <bsd.prog.mk>
     56