Home | History | Annotate | Line # | Download | only in bootst
Makefile revision 1.7
      1 #	from: @(#)Makefile	8.1 (Berkeley) 6/10/93
      2 #	$NetBSD: Makefile,v 1.7 2000/07/09 13:47:33 jdolecek 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 PROG=dummy
     19 MKMAN=no
     20 SRCS=   boot.c conf.c dev_tape.c rawfs.c version.c
     21 LIBS=	${LIBSA} ${LIBBUG}
     22 
     23 ${PROG}: ${OBJS} ${BUGCRT} ${LIBS}
     24 	${LD} -s -N -T ${RELOC} ${BUGCRT} ${OBJS} ${LIBS} -o bootst.bug
     25 	@size bootst.bug
     26 	@${WRTVID} bootst.bug # creates bootst  and stboot
     27 	touch ${PROG}
     28 
     29 install:
     30 	${INSTALL} -c -m 555 -g bin -o bin bootst ${DESTDIR}${MDEC_DIR}
     31 	${INSTALL} -c -m 555 -g bin -o bin stboot ${DESTDIR}${MDEC_DIR}
     32 
     33 afterdepend:	.depend
     34 	@(TMP=/tmp/_depend$$$$; \
     35 		sed -e 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o s\1.o:/' \
     36 	< .depend > $$TMP; \
     37 	mv $$TMP .depend)
     38 
     39 .include <bsd.prog.mk>
     40