Annotation of sys/arch/mvme88k/stand/sboot/Makefile, Revision 1.1
1.1 ! nbrk 1: # $OpenBSD: Makefile,v 1.5 2005/09/11 13:36:00 deraadt Exp $
! 2:
! 3: S= ${.CURDIR}/../../../..
! 4: INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
! 5: COPTS?= ${DEFS} ${INCL}
! 6:
! 7: .include "${S}/arch/mvme88k/stand/libsa/Makefile.inc"
! 8:
! 9: SRCS= sboot.c clock.c etherfun.c if_le.c
! 10:
! 11: OBJS= ${SRCS:S/.c/.o/g}
! 12: CLEANFILES+=XBUG.o XSRT0.o oc_cksum.o sboot.tmp rboot.tmp srec sboot rboot
! 13: MDEC_DIR?=/usr/mdec
! 14:
! 15: all: sboot rboot
! 16:
! 17: sboot.tmp: XSRT0.o oc_cksum.o ${OBJS} ${LIBSA}
! 18: ld -N -s -static -T 0x4000 XSRT0.o ${OBJS} oc_cksum.o \
! 19: -o sboot.tmp ${LIBSA} `cc -print-libgcc-file-name`
! 20:
! 21: rboot.tmp: XBUG.o XSRT0.o oc_cksum.o ${OBJS} ${LIBSA}
! 22: ld -N -s -static -Ttext 0xffa00000 -Tdata 0x4000 \
! 23: XBUG.o XSRT0.o ${OBJS} oc_cksum.o -o rboot.tmp ${LIBSA} \
! 24: `cc -print-libgcc-file-name`
! 25:
! 26: srec: srec.c
! 27: ${CC} ${.CURDIR}/srec.c -o srec
! 28:
! 29: sboot: sboot.tmp srec
! 30: dd ibs=32 skip=1 if=sboot.tmp | ${.OBJDIR}/srec 4 0x4000 sboot > sboot
! 31:
! 32: rboot: rboot.tmp srec
! 33: dd ibs=32 skip=1 if=rboot.tmp | ${.OBJDIR}/srec 4 0x4000 rboot > rboot
! 34:
! 35: install:
! 36: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
! 37: sboot ${DESTDIR}${MDEC_DIR}/sboot
! 38: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
! 39: rboot ${DESTDIR}${MDEC_DIR}/rboot
! 40:
! 41: .include <bsd.prog.mk>
CVSweb