summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--Makefile.config8
2 files changed, 13 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)
diff --git a/Makefile.config b/Makefile.config
index 69cf158..4e0ab22 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -8,5 +8,13 @@ WITH_LIBXML_BINDING := yes
# yes | no
WITH_HUBBUB_BINDING := yes
+# ----------------------------------------------------------------------------
+# BeOS-specific options
+# ----------------------------------------------------------------------------
+ifeq ($(TARGET),beos)
+ # temporary
+ WITH_LIBXML_BINDING := no
+endif
+
-include Makefile.config.override