Annotation of sys/arch/mvmeppc/stand/tftpboot/Makefile, Revision 1.1
1.1 ! nbrk 1: # $OpenBSD: Makefile,v 1.4 2004/01/24 21:10:55 miod Exp $
! 2:
! 3: SIZE?= size
! 4: STRIP?= strip
! 5:
! 6: S= ${.CURDIR}/../../../..
! 7: DEFS= -DSUN_BOOTPARAMS
! 8: #-DNETIF_DEBUG
! 9: INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
! 10: -I${S} -I${S}/lib/libsa
! 11: CFLAGS=-O2 ${DEFS} ${INCPATH} ${COPTS}
! 12: CLEANFILES+=tftpboot tftpboot.bin
! 13:
! 14: .include "${S}/arch/mvmeppc/stand/bugcrt/Makefile.inc"
! 15: .include "${S}/arch/mvmeppc/stand/libbug/Makefile.inc"
! 16: .include "${S}/arch/mvmeppc/stand/libsa/Makefile.inc"
! 17: .include "${S}/arch/mvmeppc/stand/libz/Makefile.inc"
! 18:
! 19: SRCS= boot.c version.c
! 20: #SRCS+= if_ie.c
! 21: #SRCS+= if_le.c
! 22: OBJS= ${SRCS:S/.c/.o/g}
! 23: LIBS= ${LIBSA} ${LIBBUG} ${LIBZ}
! 24: LDFLAGS+= -s -X -N -Ttext ${STAGE1_RELOC} -e _start
! 25: #LDFLAGS+= -nostdlib -s -N -Ttext ${RELOC}
! 26:
! 27: all: tftpboot.bin
! 28:
! 29: tftpboot: ${OBJS} ${SINGLE} ${LIBS}
! 30: ${LD} ${LDFLAGS} \
! 31: ${SINGLE} ${OBJS} ${LIBS} -o $@
! 32: # @${SIZE} $@
! 33:
! 34: tftpboot.bin: tftpboot
! 35: ${STRIP} tftpboot
! 36: dd ibs=96 skip=1 if=tftpboot of=$@
! 37: # dd ibs=38 skip=1 if=tftpboot of=$@
! 38:
! 39: install:
! 40: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
! 41: tftpboot.bin ${DESTDIR}${MDEC_DIR}/tftpboot
! 42:
! 43: .include <bsd.prog.mk>
CVSweb