Annotation of sys/arch/mvme68k/stand/sboot/Makefile, Revision 1.1
1.1 ! nbrk 1: # $OpenBSD: Makefile,v 1.9 2005/08/03 00:16:02 millert 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/mvme68k/stand/libbug/Makefile.inc"
! 8: .include "${S}/arch/mvme68k/stand/libsa/Makefile.inc"
! 9: .include "${S}/arch/mvme68k/stand/libz/Makefile.inc"
! 10:
! 11: SRCS= sboot.c clock.c etherfun.c if_le.c
! 12:
! 13: OBJS= ${SRCS:S/.c/.o/g}
! 14: LIBS= ${LIBSA} ${LIBBUG} ${LIBZ}
! 15: LDFLAGS= -N -s -static
! 16: CLEANFILES+=XBUG.o XSRT0.o oc_cksum.o sboot.tmp rboot.tmp srec sboot rboot
! 17: MDEC_DIR?=/usr/mdec
! 18:
! 19: all: sboot rboot
! 20:
! 21: sboot.tmp: XSRT0.o oc_cksum.o ${OBJS} ${LIBS}
! 22: ${LD} ${LDFLAGS} -T 0x4000 XSRT0.o ${OBJS} oc_cksum.o -o $@ \
! 23: ${LIBS} `cc -print-libgcc-file-name`
! 24:
! 25: rboot.tmp: XBUG.o XSRT0.o oc_cksum.o ${OBJS} ${LIBS}
! 26: ${LD} ${LDFLAGS} -T 0xffa00000 -Tdata 0x4000 XBUG.o XSRT0.o \
! 27: ${OBJS} oc_cksum.o -o $@ ${LIBS} `cc -print-libgcc-file-name`
! 28:
! 29: srec: srec.c
! 30: ${HOSTCC} -o $@ ${.CURDIR}/srec.c
! 31:
! 32: sboot: sboot.tmp srec
! 33: dd ibs=32 skip=1 if=sboot.tmp | ${.OBJDIR}/srec 4 0x4000 sboot > sboot
! 34:
! 35: rboot: rboot.tmp srec
! 36: dd ibs=32 skip=1 if=rboot.tmp | ${.OBJDIR}/srec 4 0x4000 rboot > rboot
! 37:
! 38: install:
! 39: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
! 40: sboot ${DESTDIR}${MDEC_DIR}/sboot
! 41: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
! 42: rboot ${DESTDIR}${MDEC_DIR}/rboot
! 43:
! 44: .include <bsd.prog.mk>
CVSweb