diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 16:28:30 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 16:28:30 +0000 |
commit | f3871ddf33d016499a7dac7613e9acbc0ca47eb2 (patch) | |
tree | bc51de5369e2b7d61d9c97903b8c6fa5c2e3a081 /Makefile | |
parent | 7ab2ca6642902f0e3ca095420eaf6a97e5b639ed (diff) | |
download | libcss-f3871ddf33d016499a7dac7613e9acbc0ca47eb2.tar.gz libcss-f3871ddf33d016499a7dac7613e9acbc0ca47eb2.tar.bz2 |
A bunch of c89.
Lose trailing commas.
GCC 2.95 compatibility.
svn path=/trunk/libcss/; revision=7099
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 & wapcaplet ifneq ($(PKGCONFIG),) |