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