diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 15:50:06 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 15:50:06 +0000 |
commit | 82c9ccd349f10a551ff6df098e9a136982de6e2b (patch) | |
tree | af91e734083c687e5d24db46d144b9c1ae2ddc27 /Makefile | |
parent | a8c732492a0a3e2bc576d945b9d6a964a082b96e (diff) | |
download | libparserutils-82c9ccd349f10a551ff6df098e9a136982de6e2b.tar.gz libparserutils-82c9ccd349f10a551ff6df098e9a136982de6e2b.tar.bz2 |
Lose a bunch of trailing commas.
GCC 2.95 compatibility.
svn path=/trunk/libparserutils/; revision=7094
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -10,11 +10,21 @@ include build/makefiles/Makefile.tools TESTRUNNER := $(PERL) build/testtools/testrunner.pl # Toolchain flags -WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \ +WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs -Werror -pedantic -CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \ +ifneq ($(GCCVER),2) + WARNFLAGS := $(WARNFLAGS) -Wextra +endif + +CFLAGS := $(CFLAGS) -D_BSD_SOURCE -I$(CURDIR)/include/ \ -I$(CURDIR)/src $(WARNFLAGS) +ifneq ($(GCCVER),2) + CFLAGS := $(CFLAGS) -std=c99 +else + # __inline__ is a GCCism + CFLAGS := $(CFLAGS) -Dinline="__inline__" +endif include build/makefiles/Makefile.top |