summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-22 10:48:29 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-03-22 10:48:29 (GMT)
commitfb7d170c99a9083eb9407dec79c9f10e9586173e (patch)
treea2d2080f0f45f9da8e3183788bea8feb1b219581
parentae55e15a595e2b86e81e974fd276f7d585e012af (diff)
downloadlibutf8proc-fb7d170c99a9083eb9407dec79c9f10e9586173e.tar.gz
libutf8proc-fb7d170c99a9083eb9407dec79c9f10e9586173e.tar.bz2
Improve makefile toolchain flag passing
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d76e971..d98d841 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+#!/bin/make
+#
+# Makefile for libutf8proc
+#
+# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org>
+
# Component settings
COMPONENT := utf8proc
COMPONENT_VERSION := 1.1.6
@@ -16,13 +22,9 @@ TESTRUNNER = $(BUILDDIR)/test_testrunner$(EXEEXT)
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs
-# Debug builds compile with error warnings
-# BeOS/Haiku standard library headers issue warnings
-#ifneq ($(BUILD),i586-pc-haiku)
-# WARNFLAGS := $(WARNFLAGS) -Werror
-#endif
-CFLAGS := -I$(CURDIR)/include/libutf8proc/ \
- -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
+
+CFLAGS := -I$(CURDIR)/include/libutf8proc/ -I$(CURDIR)/src \
+ $(WARNFLAGS) $(CFLAGS)
ifneq ($(GCCVER),2)
CFLAGS := $(CFLAGS) -std=c99
else