summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-15 15:55:34 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-04-15 15:55:34 +0000
commit8f025108a574602e50d1090204ba30cf68047f54 (patch)
treec980b33d10c3880bb793cd1a9720b5a5540684d3 /Makefile
parent1daa4134c5058307192b66bd33dabdeff399a9e3 (diff)
downloadlibhubbub-8f025108a574602e50d1090204ba30cf68047f54.tar.gz
libhubbub-8f025108a574602e50d1090204ba30cf68047f54.tar.bz2
Lose trailing commas.
GCC 2.95 compatibility. svn path=/trunk/hubbub/; revision=7095
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 980f77e..37f5d70 100644
--- a/Makefile
+++ b/Makefile
@@ -10,11 +10,20 @@ 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
# Parserutils
ifneq ($(PKGCONFIG),)