1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/config/mh-linux-va Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,77 @@ 1.4 +## -*-makefile-*- 1.5 +## Linux-specific setup for Visual Age 1.6 +## Copyright (c) 2003-2010, 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) 1.12 + 1.13 +# -qroconst make the strings readonly, which is usually the default. 1.14 +# This helps in the data library, 1.15 +# -qproto assumes all functions are prototyped (for optimization) 1.16 +CFLAGS += -qproto -qroconst 1.17 +CXXFLAGS += -qproto -qroconst 1.18 + 1.19 +GENCCODE_ASSEMBLY=-a gcc 1.20 +## Flags for position independent code 1.21 +SHAREDLIBCFLAGS = -qpic=large 1.22 +SHAREDLIBCXXFLAGS = -qpic=large 1.23 +SHAREDLIBCPPFLAGS = -DPIC 1.24 + 1.25 +## Additional flags when building libraries and with threads 1.26 +THREADSCPPFLAGS = -D_REENTRANT 1.27 +LIBCPPFLAGS = 1.28 + 1.29 +## Compiler switch to embed a runtime search path 1.30 +LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN 1.31 +#LD_RPATH_PRE = -Wl,-rpath, 1.32 + 1.33 +## Compiler switch to embed a library name 1.34 +# The initial tab in the next line is to prevent icu-config from reading it. 1.35 + LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) 1.36 +#SH# # We can't depend on MIDDLE_SO_TARGET being set. 1.37 +#SH# LD_SONAME= 1.38 + 1.39 +## The type of assembly needed when pkgdata is used for generating shared libraries. 1.40 +GENCCODE_ASSEMBLY=-a gcc 1.41 + 1.42 +## Shared object suffix 1.43 +SO = so 1.44 +## Non-shared intermediate object suffix 1.45 +STATIC_O = ao 1.46 + 1.47 +## Override the default mechanism for building shared objects 1.48 +SHLIB.c= $(CC) $(CFLAGS) -qmkshrobj -qpic=large -G $(LDFLAGS) 1.49 +SHLIB.cc= $(CXX) $(CXXFLAGS) -qmkshrobj -qpic=large -G $(LDFLAGS) 1.50 + 1.51 +## Compilation rules 1.52 +%.$(STATIC_O): $(srcdir)/%.c 1.53 + $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $< 1.54 +%.o: $(srcdir)/%.c 1.55 + $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $< 1.56 + 1.57 +%.$(STATIC_O): $(srcdir)/%.cpp 1.58 + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< 1.59 +%.o: $(srcdir)/%.cpp 1.60 + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< 1.61 + 1.62 + 1.63 +## Dependency rules 1.64 +%.d: $(srcdir)/%.c 1.65 + @echo "generating dependency information for $<" 1.66 + @$(SHELL) -ec '$(GEN_DEPS.c) $< > /dev/null' 1.67 + 1.68 +%.d: $(srcdir)/%.cpp 1.69 + @echo "generating dependency information for $<" 1.70 + @$(SHELL) -ec '$(GEN_DEPS.cc) $< > /dev/null' 1.71 + 1.72 +## Versioned libraries rules 1.73 + 1.74 +%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION) 1.75 + $(RM) $@ && ln -s ${<F} $@ 1.76 +%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR) 1.77 + $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@ 1.78 + 1.79 +## End Linux-specific setup 1.80 +