Home | History | Annotate | Line # | Download | only in bootst
Makefile revision 1.6
      1 #	from: @(#)Makefile	8.1 (Berkeley) 6/10/93
      2 #	$NetBSD: Makefile,v 1.6 2000/06/25 16:39:06 scw Exp $
      3 
      4 RELOC=0x3F0000 
      5 
      6 S=	${.CURDIR}/../../../..
      7 DEFS= 
      8 INCPATH=-I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
      9 	-I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa
     10 CFLAGS=	-O2 ${INCPATH} ${DEFS} ${COPTS}
     11 CLEANFILES+=stboot bootst bootst.bug
     12 
     13 .include "${S}/arch/mvme68k/stand/libsa/Makefile.inc"
     14 .include "${S}/arch/mvme68k/stand/libbug/Makefile.inc"
     15 .include "${S}/arch/mvme68k/stand/bugcrt/Makefile.inc"
     16 .include "${S}/arch/mvme68k/stand/wrtvid/Makefile.inc"
     17 
     18 SRCS=   boot.c conf.c dev_tape.c rawfs.c version.c
     19 LIBS=	${LIBSA} ${LIBBUG}
     20 OBJS=   ${SRCS:S/.c/.o/g}
     21 
     22 realall:	bootst stboot
     23 
     24 bootst.bug:	${OBJS} ${BUGCRT} ${LIBS}
     25 	${LD} -s -N -T ${RELOC} ${BUGCRT} ${OBJS} ${LIBS} -o $@
     26 	@size bootst.bug
     27 
     28 bootst stboot: bootst.bug ${WRTVID}
     29 	${WRTVID} bootst.bug
     30 
     31 install:
     32 	${INSTALL} -c -m 555 -g bin -o bin bootst ${DESTDIR}${MDEC_DIR}
     33 	${INSTALL} -c -m 555 -g bin -o bin stboot ${DESTDIR}${MDEC_DIR}
     34 
     35 afterdepend:	.depend
     36 	@(TMP=/tmp/_depend$$$$; \
     37 		sed -e 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o s\1.o:/' \
     38 	< .depend > $$TMP; \
     39 	mv $$TMP .depend)
     40 
     41 .include <bsd.prog.mk>
     42