From a96195b5fdadad19ef81280b9b8adeb5f4dd50ad Mon Sep 17 00:00:00 2001 From: dbj Date: Fri, 28 Aug 1998 22:50:54 +0000 Subject: [PATCH] added -Wno-main if USE_EGCS is defined --- sys/arch/next68k/stand/boot/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/next68k/stand/boot/Makefile b/sys/arch/next68k/stand/boot/Makefile index 87f9eda32011..2a2b8511abc8 100644 --- a/sys/arch/next68k/stand/boot/Makefile +++ b/sys/arch/next68k/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 1998/07/19 21:41:17 dbj Exp $ +# $NetBSD: Makefile,v 1.4 1998/08/28 22:50:54 dbj Exp $ S= ${.CURDIR}/../../../.. @@ -24,7 +24,11 @@ RELOC= 4380000 INCLUDES+= -I${.CURDIR} -I${.CURDIR}/obj.${MACHINE} -I${S}/arch -I${S} -I${S}/lib/libsa -I${S}/lib/libkern DEFS+= -D_STANDALONE -DMC68040 -DSUPPORT_BOOTP -DSUPPORT_DHCP -DDEBUG # -DEN_DEBUG -DNETIF_DEBUG # -DSD_DEBUG -DSCSI_DEBUG SAMISCCPPFLAGS= -DSUPPORT_DHCP -DSUPPORT_BOOTP -DINSECURE # -DBOOTP_DEBUG -DETHER_DEBUG -DNET_DEBUG # -DNETIF_DEBUG -DNFS_DEBUG -DARP_DEBUG +.if defined(USE_EGCS) COPTS+= -Wall -Wno-main +.else +COPTS+= -Wall +.endif CFLAGS+= -nostdinc ${INCLUDES} ${DEFS} LIBCRT0=