Makefile revision 1.6
1#	$NetBSD: Makefile,v 1.6 2024/09/24 11:13:41 rin Exp $
2#
3LIB	= libtos.a
4
5OBJS	= biosrw.o ahdi.o aout.o bsdlabel.o bsdstart.o cread.o diskio.o elf.o \
6	  eprintf.o error.o sysinfo.o xalloc.o xexit.o keywait.o
7
8HEADERS	= ahdilbl.h disklbl.h diskio.h kparamb.h libtos.h
9
10include ../Makefile.inc
11
12${LIB}: ${OBJS}
13	@${RM} ${LIB}
14	${AR} ${LIB} ${OBJS}
15
16.if ${HAVE_GCC:U0} >= 12
17# ADDR_* defined in tosdefs.h are in the 0-th page, even if 4KB page,
18# i.e., [0, 0x1000). This causes -Warray-bounds for GCC12 and later.
19COPTS.sysinfo.c+=	-Wno-error=array-bounds
20.endif
21