X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/f59164e3d128c7675a4d3934206346a3384e53a5..f3c0d7a59d99c2a94c6b8822291f0e42be3773c9:/icuSources/config/mh-solaris?ds=sidebyside diff --git a/icuSources/config/mh-solaris b/icuSources/config/mh-solaris index 4b969b5b..e1d4ccf9 100644 --- a/icuSources/config/mh-solaris +++ b/icuSources/config/mh-solaris @@ -1,8 +1,14 @@ ## -*-makefile-*- +## Copyright (C) 2016 and later: Unicode, Inc. and others. +## License & terms of use: http://www.unicode.org/copyright.html ## Solaris-specific setup using Sun's compilers ## Copyright (c) 1999-2010, International Business Machines Corporation and ## others. All Rights Reserved. +## Flags for ICU 59+ +CXXFLAGS += -std=c++11 +CFLAGS += -std=c99 + ## Flags for position independent code SHAREDLIBCFLAGS = -KPIC SHAREDLIBCXXFLAGS = -KPIC @@ -57,17 +63,34 @@ SO= so ## Non-shared intermediate object suffix STATIC_O = o +# This causes escapesrc to be built before other ICU targets. +NEED_ESCAPING=YES + ## 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 $@ $< +ifneq ($(SKIP_ESCAPING),) %.o: $(srcdir)/%.cpp $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< +%.$(STATIC_O): $(srcdir)/%.cpp + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< +else +# convert *.cpp files to _*.cpp with \u / \U escaping +CLEANFILES += _*.cpp + +# the actual escaping +_%.cpp: $(srcdir)/%.cpp + @$(BINDIR)/escapesrc$(EXEEXT) $< $@ +# no escaping - bootstrap +%.$(STATIC_O): _%.cpp + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< +%.o: _%.cpp + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< +endif ## Dependency rules %.d : $(srcdir)/%.c