1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/config/mh-linux Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,85 @@ 1.4 +## -*-makefile-*- 1.5 +## Linux-specific setup 1.6 +## Copyright (c) 1999-2013, International Business Machines Corporation and 1.7 +## others. All Rights Reserved. 1.8 + 1.9 +## Commands to generate dependency files 1.10 +GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) 1.11 +GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) $(CXXFLAGS) 1.12 + 1.13 +## Flags for position independent code 1.14 +SHAREDLIBCFLAGS = -fPIC 1.15 +SHAREDLIBCXXFLAGS = -fPIC 1.16 +SHAREDLIBCPPFLAGS = -DPIC 1.17 + 1.18 +## Additional flags when building libraries and with threads 1.19 +THREADSCPPFLAGS = -D_REENTRANT 1.20 +LIBCPPFLAGS = 1.21 + 1.22 +## Compiler switch to embed a runtime search path 1.23 +LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN 1.24 +LD_RPATH_PRE = -Wl,-rpath, 1.25 + 1.26 +## These are the library specific LDFLAGS 1.27 +LDFLAGSICUDT=-nodefaultlibs -nostdlib 1.28 + 1.29 +## Compiler switch to embed a library name 1.30 +# The initial tab in the next line is to prevent icu-config from reading it. 1.31 + LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) 1.32 +#SH# # We can't depend on MIDDLE_SO_TARGET being set. 1.33 +#SH# LD_SONAME= 1.34 + 1.35 +## Shared library options 1.36 +LD_SOOPTIONS= -Wl,-Bsymbolic 1.37 + 1.38 +## Shared object suffix 1.39 +SO = so 1.40 +## Non-shared intermediate object suffix 1.41 +STATIC_O = ao 1.42 + 1.43 +## Compilation rules 1.44 +%.$(STATIC_O): $(srcdir)/%.c 1.45 + $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -o $@ $<) 1.46 +%.o: $(srcdir)/%.c 1.47 + $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS)) -o $@ $<) 1.48 + 1.49 +%.$(STATIC_O): $(srcdir)/%.cpp 1.50 + $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS)) -o $@ $<) 1.51 +%.o: $(srcdir)/%.cpp 1.52 + $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS)) -o $@ $<) 1.53 + 1.54 + 1.55 +## Dependency rules 1.56 +%.d: $(srcdir)/%.c 1.57 + $(call ICU_MSG,(deps)) $< 1.58 + @$(SHELL) -ec '$(GEN_DEPS.c) $< \ 1.59 + | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ 1.60 + [ -s $@ ] || rm -f $@' 1.61 + 1.62 +%.d: $(srcdir)/%.cpp 1.63 + $(call ICU_MSG,(deps)) $< 1.64 + @$(SHELL) -ec '$(GEN_DEPS.cc) $< \ 1.65 + | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ 1.66 + [ -s $@ ] || rm -f $@' 1.67 + 1.68 +## Versioned libraries rules 1.69 + 1.70 +%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) 1.71 + $(RM) $@ && ln -s ${<F} $@ 1.72 +%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR) 1.73 + $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@ 1.74 + 1.75 +## Bind internal references 1.76 + 1.77 +# LDflags that pkgdata will use 1.78 +BIR_LDFLAGS= -Wl,-Bsymbolic 1.79 + 1.80 +# Dependencies [i.e. map files] for the final library 1.81 +BIR_DEPS= 1.82 + 1.83 +## Remove shared library 's' 1.84 +STATIC_PREFIX_WHEN_USED = 1.85 +STATIC_PREFIX = 1.86 + 1.87 +## End Linux-specific setup 1.88 +