summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2012-03-24 06:54:37 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2012-03-24 06:54:37 +0000
commitf1c8e32dc24e208836e7c6ddc37997a237545c7a (patch)
treea59b1c277c498d8fc441f48a3aa0eeafc5daf44d /Makefile
parentc396459ca41f2f4f5a2be059b6db35b4e10eca7f (diff)
downloadlibdom-f1c8e32dc24e208836e7c6ddc37997a237545c7a.tar.gz
libdom-f1c8e32dc24e208836e7c6ddc37997a237545c7a.tar.bz2
Disable -Werror for BeOS in libdom. Disable the libxml binding on BeOS for the time being.
svn path=/trunk/libdom/; revision=13575
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8da3d46..3d906ca 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,11 @@ TESTRUNNER := $(PERL) build/testtools/testrunner.pl
# Toolchain flags
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
- -Wmissing-declarations -Wnested-externs -Werror -pedantic
+ -Wmissing-declarations -Wnested-externs -pedantic
+# BeOS/Haiku standard library headers create warnings
+ifneq ($(TARGET),beos)
+ WARNFLAGS := $(WARNFLAGS) -Werror
+endif
CFLAGS := -std=c99 -D_BSD_SOURCE -D_GNU_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS)