Annotation of sys/arch/mvme88k/stand/netboot/Makefile, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: Makefile,v 1.14 2006/05/16 22:51:30 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+=${DEFS} ${INCPATH} ${COPTS}
12: CLEANFILES+=netboot netboot.bin
13:
14: .include "${S}/arch/mvme88k/stand/bugcrt/Makefile.inc"
15: .include "${S}/arch/mvme88k/stand/libbug/Makefile.inc"
16: .include "${S}/arch/mvme88k/stand/libsa/Makefile.inc"
17: .include "${S}/arch/mvme88k/stand/libz/Makefile.inc"
18:
19: SRCS= boot.c conf.c version.c devopen.c dev_net.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 -N -T ${STAGE2_RELOC}
25:
26: all: netboot.bin
27:
28: netboot: ${OBJS} ${SINGLE} ${LIBS}
29: ${LD} ${LDFLAGS} -o $@ \
30: ${SINGLE} ${OBJS} ${LIBS} `cc -print-libgcc-file-name`
31: # @${SIZE} $@
32:
33: netboot.bin: netboot
34: ${STRIP} netboot
35: dd ibs=32 skip=1 if=netboot of=$@
36: # dd ibs=38 skip=1 if=netboot of=$@
37:
38: install:
39: ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
40: netboot.bin ${DESTDIR}${MDEC_DIR}/netboot
41:
42: .include <bsd.prog.mk>
CVSweb