summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-15 15:59:28 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-04-15 15:59:28 +0000
commiteac3b61425e440aacc636412add3447498f1b5c8 (patch)
tree1b21eb3c055a405bece346be0a4ffbf1df8868de
parent75b1e3b934ba886809f2ac97cb334647bb0fbf5f (diff)
downloadlibnsgif-eac3b61425e440aacc636412add3447498f1b5c8.tar.gz
libnsgif-eac3b61425e440aacc636412add3447498f1b5c8.tar.bz2
GCC 2.95 compatibility
svn path=/trunk/libnsgif/; revision=7097
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0a55e6f..e3cb4be 100644
--- a/Makefile
+++ b/Makefile
@@ -8,11 +8,20 @@ COMPONENT_TYPE ?= lib-static
include build/makefiles/Makefile.tools
# 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