1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/config/mh-qnx Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,92 @@ 1.4 +## -*-makefile-*- 1.5 +## QNX-specific setup 1.6 +## Copyright (c) 1999-2006, International Business Machines Corporation and 1.7 +## others. All Rights Reserved. 1.8 +## 1.9 +## Provided By: Chris McKillop <cdm@qnx.com> 1.10 + 1.11 + 1.12 +# 1.13 +# Create shared libs that "work" properly. 1.14 +# 1.15 + 1.16 +## Commands to generate dependency files 1.17 +GEN_DEPS.c= $(CC) -E -Wp,-MM $(DEFS) $(CPPFLAGS) 1.18 +GEN_DEPS.cc= $(CXX) -E -Wp,-MM $(DEFS) $(CPPFLAGS) 1.19 + 1.20 +## Flags for position independent code 1.21 +SHAREDLIBCFLAGS = -shared 1.22 +SHAREDLIBCXXFLAGS = -shared 1.23 +# SHAREDLIBCPPFLAGS = -shared 1.24 + 1.25 +# 1.26 +# Always generatate PIC code. 1.27 +# 1.28 +#CPPFLAGS+=-shared 1.29 + 1.30 +## Additional flags when building libraries and with threads 1.31 +LIBCPPFLAGS = 1.32 +THREADSCPPFLAGS = 1.33 + 1.34 +## Compiler switch to embed a runtime search path 1.35 +LD_RPATH= 1.36 +LD_RPATH_PRE = -Wl,-rpath, 1.37 + 1.38 +## Compiler switch to embed a library name 1.39 +LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) 1.40 + 1.41 +## Shared object suffix 1.42 +SO = so 1.43 +## Non-shared intermediate object suffix 1.44 +STATIC_O = ao 1.45 + 1.46 +## Compilation rules 1.47 +%.$(STATIC_O): $(srcdir)/%.c 1.48 + $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $< 1.49 +%.o: $(srcdir)/%.c 1.50 + $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $< 1.51 + 1.52 +%.$(STATIC_O): $(srcdir)/%.cpp 1.53 + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< 1.54 +%.o: $(srcdir)/%.cpp 1.55 + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< 1.56 + 1.57 + 1.58 +## Dependency rules 1.59 +%.d: $(srcdir)/%.c 1.60 + @echo "generating dependency information for $<" 1.61 + @$(SHELL) -ec '$(GEN_DEPS.c) $< \ 1.62 + | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ 1.63 + [ -s $@ ] || rm -f $@' 1.64 + 1.65 +%.d: $(srcdir)/%.cpp 1.66 + @echo "generating dependency information for $<" 1.67 + @$(SHELL) -ec '$(GEN_DEPS.cc) $< \ 1.68 + | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ 1.69 + [ -s $@ ] || rm -f $@' 1.70 + 1.71 +## Versioned libraries rules 1.72 +## 1.73 +## QNX wants the SONAME in the shared lib to match the final "real" filename. 1.74 +## (to ease in packaging with QNX's native package format) 1.75 +## 1.76 +MIDDLE_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION_MAJOR) 1.77 +FINAL_SO_TARGET = $(MIDDLE_SO_TARGET) 1.78 + 1.79 +%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR) 1.80 + $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION_MAJOR) $@ 1.81 +#%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) 1.82 +# $(RM) $@ && ln -s ${<F} $@ 1.83 +#%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR) 1.84 +# $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@ 1.85 + 1.86 +## Bind internal references 1.87 + 1.88 +# LDflags that pkgdata will use 1.89 +BIR_LDFLAGS= -Wl,-Bsymbolic 1.90 + 1.91 +# Dependencies [i.e. map files] for the final library 1.92 +BIR_DEPS= 1.93 + 1.94 +## End QNX-specific setup 1.95 +