Annotation of sys/arch/vax/boot/xxboot/Makefile, Revision 1.1
1.1 ! nbrk 1: # $OpenBSD: Makefile,v 1.6 2006/07/04 21:43:53 martin Exp $
! 2: # $NetBSD: Makefile,v 1.12 2002/02/24 01:04:25 matt Exp $
! 3:
! 4: S= ${.CURDIR}/../../../../
! 5:
! 6: PROG= xxboot
! 7: LINKS= ${BINDIR}/xxboot ${BINDIR}/raboot
! 8: LINKS+= ${BINDIR}/xxboot ${BINDIR}/hdboot
! 9: LINKS+= ${BINDIR}/xxboot ${BINDIR}/sdboot
! 10: LINKS+= ${BINDIR}/xxboot ${BINDIR}/hpboot
! 11: WARNS?= 1
! 12:
! 13: SRCS= start.S bootxx.c romread.S str.S urem.s udiv.s
! 14:
! 15: INSTALL_STRIP=
! 16: CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \
! 17: -DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \
! 18: -DLIBSA_NO_COMPAT_UFS \
! 19: -DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_CLOSE \
! 20: -DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK \
! 21: -DNEED_UFS
! 22: BINDIR= /usr/mdec
! 23: NOMAN= # defined
! 24:
! 25: CFLAGS= -Os
! 26:
! 27: SAREL=
! 28: SA_AS= library
! 29: .include "${S}/lib/libsa/Makefile.inc"
! 30: LIBSA= ${SALIB}
! 31:
! 32: #KERN_AS=library
! 33: #.include "${S}/lib/libkern/Makefile.inc"
! 34: #LIBKERN=${KERNLIB}
! 35:
! 36: .if ${MACHINE} == "vax"
! 37: .PHONY: machine-links
! 38: beforedepend: machine-links
! 39: machine-links:
! 40: @[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
! 41: @[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
! 42: .NOPATH: machine ${MACHINE_ARCH}
! 43: CLEANFILES+= machine ${MACHINE_ARCH} ${PROG}.out
! 44: .endif
! 45:
! 46: ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
! 47: ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
! 48: ${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN}
! 49: /usr/bin/strip ${PROG}.out
! 50: /usr/bin/size ${PROG}.out
! 51: /bin/dd if=${PROG}.out of=${PROG} bs=32 skip=1
! 52:
! 53: clean::
! 54: rm -f a.out [Ee]rrs mklog core *.core ${PROG} ${OBJS} ${LOBJS} \
! 55: ${CLEANFILES}
! 56:
! 57: .include <bsd.prog.mk>
CVSweb