-## -*-makefile-*-\r
-## haiku-specific setup\r
-## Copyright (c) 2010, International Business Machines Corporation and\r
-## others. All Rights Reserved.\r
-##\r
-\r
-## Commands to generate dependency files\r
-GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)\r
-GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)\r
-\r
-## Flags for position independent code\r
-SHAREDLIBCFLAGS = -fPIC\r
-SHAREDLIBCXXFLAGS = -fPIC\r
-SHAREDLIBCPPFLAGS = -DPIC\r
-\r
-## Additional flags when building libraries and with threads\r
-LIBCPPFLAGS =\r
-THREADSCPPFLAGS =\r
-\r
-## Compiler switch to embed a runtime search path\r
-LD_RPATH=\r
-LD_RPATH_PRE = -Wl,-rpath,\r
-\r
-## Compiler switch to embed a library name\r
-LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))\r
-\r
-## Shared object suffix\r
-SO = so\r
-## Non-shared intermediate object suffix\r
-STATIC_O = ao\r
-\r
-## Compilation rules\r
-%.$(STATIC_O): $(srcdir)/%.c\r
- $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<\r
-%.o: $(srcdir)/%.c\r
- $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<\r
-\r
-%.$(STATIC_O): $(srcdir)/%.cpp\r
- $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<\r
-%.o: $(srcdir)/%.cpp\r
- $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<\r
-\r
-\r
-## Dependency rules\r
-%.d: $(srcdir)/%.c\r
- @echo "generating dependency information for $<"\r
- @$(SHELL) -ec '$(GEN_DEPS.c) $< \\r
- | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \\r
- [ -s $@ ] || rm -f $@'\r
-\r
-%.d: $(srcdir)/%.cpp\r
- @echo "generating dependency information for $<"\r
- @$(SHELL) -ec '$(GEN_DEPS.cc) $< \\r
- | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \\r
- [ -s $@ ] || rm -f $@'\r
-\r
-## Versioned libraries rules\r
-\r
-%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)\r
- $(RM) $@ && ln -s ${<F} $@\r
-%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)\r
- $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@\r
-\r
-## Bind internal references\r
-\r
-# LDflags that pkgdata will use\r
-BIR_LDFLAGS= -Wl,-Bsymbolic\r
-\r
-# Dependencies [i.e. map files] for the final library\r
-BIR_DEPS=\r
-\r
-# Use LIBRARY_PATH instead of LD_LIBRARY_PATH\r
-LDLIBRARYPATH_ENVVAR= LIBRARY_PATH\r
-\r
-## End haiku-specific setup\r
+## -*-makefile-*-
+## haiku-specific setup
+## Copyright (c) 2010-2012, International Business Machines Corporation and
+## others. All Rights Reserved.
+##
+
+## Commands to generate dependency files
+GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
+GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
+
+## Flags for position independent code
+SHAREDLIBCFLAGS = -fPIC
+SHAREDLIBCXXFLAGS = -fPIC
+SHAREDLIBCPPFLAGS = -DPIC
+
+## Additional flags when building libraries and with threads
+LIBCPPFLAGS =
+THREADSCPPFLAGS =
+
+#
+CPPFLAGS += -D__STDC_ISO_10646__ -DU_CHARSET_IS_UTF8=1
+
+## Compiler switch to embed a runtime search path
+LD_RPATH=
+LD_RPATH_PRE = -Wl,-rpath,
+
+## Compiler switch to embed a library name
+LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
+
+## Shared object suffix
+SO = so
+## Non-shared intermediate object suffix
+STATIC_O = ao
+
+## Compilation rules
+%.$(STATIC_O): $(srcdir)/%.c
+ $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
+%.o: $(srcdir)/%.c
+ $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
+
+%.$(STATIC_O): $(srcdir)/%.cpp
+ $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
+%.o: $(srcdir)/%.cpp
+ $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
+
+
+## Dependency rules
+%.d: $(srcdir)/%.c
+ @echo "generating dependency information for $<"
+ @$(SHELL) -ec '$(GEN_DEPS.c) $< \
+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
+ [ -s $@ ] || rm -f $@'
+
+%.d: $(srcdir)/%.cpp
+ @echo "generating dependency information for $<"
+ @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
+ [ -s $@ ] || rm -f $@'
+
+## Versioned libraries rules
+
+%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
+ $(RM) $@ && ln -s ${<F} $@
+%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
+ $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
+
+## Bind internal references
+
+# LDflags that pkgdata will use
+BIR_LDFLAGS= -Wl,-Bsymbolic
+
+# Dependencies [i.e. map files] for the final library
+BIR_DEPS=
+
+# Use LIBRARY_PATH instead of LD_LIBRARY_PATH
+LDLIBRARYPATH_ENVVAR= LIBRARY_PATH
+
+## End haiku-specific setup