1 # $NetBSD: Makefile,v 1.10 2000/07/28 20:08:21 scw Exp $ 2 3 LIB=bug 4 5 MKPIC= no 6 MKLINT= no 7 MKPROFILE= no 8 9 S=${.CURDIR}/../../../.. 10 DIR_SA=$S/lib/libsa 11 12 SRCS= delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c outln.c \ 13 outstr.c putchar.c return.c rtc_rd.c 14 CLEANFILES+= bugcrt.o bugcrt.o.tmp 15 16 .include "../Makefile.booters" 17 18 # only needed during build 19 libinstall:: 20 21 # separate rule for bugcrt.c - NEED NOT BE COMPILED WITH -O2 22 # this is build separately from rest of libbug 23 bugcrt.o: bugcrt.c 24 ${CC} -nostdinc ${INCPATH} -D_STANDALONE -o ${.TARGET}.tmp -c ${.IMPSRC} 25 ${LD} -x -r ${.TARGET}.tmp -o ${.TARGET} 26 27 all realall: lib${LIB}.a bugcrt.o 28 29 .include <bsd.lib.mk> 30