921705c3eb
stuff make this all compile with -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes -Werror , also compilable on 1.4.1 label itself as NetBSD/mvme68k instead of "BSD" in bootblock message move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built and used separately to rest of libbug) convert sboot to use ordinary mvme68 libsa, instead of copying needed stuff in libc_sa.c convert to use version info generated by sys/conf/newvers_stand.sh instead of previous version.c files, add necessary 'version' files put chiptotime() to separate libsa file (used also by sboot/clock.c) Thanks to Steve Woodford for help with this. Note that -current build might be hosed by this change, will be addressed by Steve shortly.
29 lines
662 B
Makefile
29 lines
662 B
Makefile
# $NetBSD: Makefile,v 1.8 2000/07/24 18:39:38 jdolecek Exp $
|
|
|
|
LIB=bug
|
|
|
|
MKPIC= no
|
|
MKLINT= no
|
|
MKPROFILE= no
|
|
|
|
S=${.CURDIR}/../../../..
|
|
DIR_SA=$S/lib/libsa
|
|
|
|
SRCS= delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c outln.c \
|
|
outstr.c putchar.c return.c rtc_rd.c
|
|
CLEANFILES+= bugcrt.o bugcrt.o.tmp
|
|
|
|
.include "../Makefile.booters"
|
|
|
|
# only needed during build
|
|
libinstall::
|
|
|
|
# separate rule for bugcrt.c - NEED NOT BE COMPILED WITH -O2
|
|
# this is build separately from rest of libbug
|
|
bugcrt.o: bugcrt.c
|
|
${CC} -nostdinc ${INCPATH} -D_STANDALONE -o ${.TARGET}.tmp -c ${.IMPSRC}
|
|
${LD} -x -r ${.TARGET}.tmp -o ${.TARGET}
|
|
|
|
all: lib${LIB}.a bugcrt.o
|
|
.include <bsd.lib.mk>
|