Turn off stupid warnings when using Sun CC.

pull/1/head
Nicholas Marriott 2009-10-15 08:15:06 +00:00
parent 0614ca434a
commit 1fdf489cae
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.116 2009-09-20 22:06:34 tcunha Exp $
# $Id: GNUmakefile,v 1.117 2009-10-15 08:15:06 nicm Exp $
.PHONY: clean
@ -6,11 +6,17 @@ VERSION= 1.1
FDEBUG= 1
CC?= gcc
CC?= cc
CFLAGS+= -DBUILD="\"$(VERSION)\""
LDFLAGS+= -L/usr/local/lib
LIBS+=
# Sun CC
ifneq ($(shell (cc -V 2>&1|awk '/Sun C/' || true)), )
CFLAGS+=-erroff=E_EMPTY_DECLARATION
FDEBUG=
endif
ifdef FDEBUG
CFLAGS+= -g -ggdb -DDEBUG
CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2