Annotation of sys/arch/mvme68k/stand/netboot/Makefile, Revision 1.1
1.1 ! nbrk 1: # $OpenBSD: Makefile,v 1.14 2006/01/10 07:36:32 miod Exp $
! 2:
! 3: SIZE?= size
! 4:
! 5: S= ${.CURDIR}/../../../..
! 6: DEFS= -DSUN_BOOTPARAMS -DRELOC=${STAGE2_RELOC}
! 7: INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
! 8: -I${S} -I${S}/lib/libsa
! 9: CFLAGS+= -O2 ${DEFS} ${INCPATH} ${COPTS}
! 10: CLEANFILES+=netboot netboot.bin
! 11:
! 12: .include "${S}/arch/mvme68k/stand/bugcrt/Makefile.inc"
! 13: .include "${S}/arch/mvme68k/stand/libbug/Makefile.inc"
! 14: .include "${S}/arch/mvme68k/stand/libsa/Makefile.inc"
! 15: .include "${S}/arch/mvme68k/stand/libz/Makefile.inc"
! 16:
! 17: SRCS= boot.c conf.c version.c devopen.c dev_net.c
! 18: SRCS+= if_ie.c if_le.c
! 19: OBJS= ${SRCS:S/.c/.o/g}
! 20: LIBS= ${LIBSA} ${LIBBUG} ${LIBZ}
! 21: LDFLAGS+= -nostdlib -s -N -T ${STAGE2_RELOC}
! 22:
! 23: all: netboot.bin
! 24:
! 25: netboot: ${OBJS} ${BUGCRT} ${LIBS}
! 26: ${LD} ${LDFLAGS} -o $@ \
! 27: ${SRTOBJ} ${BUGCRT} ${OBJS} ${LIBS} `cc -print-libgcc-file-name`
! 28: @${SIZE} $@
! 29:
! 30: netboot.bin: netboot
! 31: dd ibs=32 skip=1 if=netboot of=$@
! 32:
! 33: install:
! 34: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
! 35: netboot.bin ${DESTDIR}${MDEC_DIR}/netboot
! 36:
! 37: .include <bsd.prog.mk>
CVSweb