intl/icu/source/config/mh-solaris-gcc

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/config/mh-solaris-gcc	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,78 @@
     1.4 +## -*-makefile-*-
     1.5 +## Solaris-specific setup using gcc
     1.6 +## Copyright (c) 1999-2010, International Business Machines Corporation and
     1.7 +## others. All Rights Reserved.
     1.8 +
     1.9 +## Flags for position independent code
    1.10 +SHAREDLIBCFLAGS = -fPIC
    1.11 +SHAREDLIBCXXFLAGS = -fPIC
    1.12 +SHAREDLIBCPPFLAGS = -DPIC
    1.13 +
    1.14 +## Commands to generate dependency files
    1.15 +GEN_DEPS.c= 	$(CC) -E -MM $(DEFS) $(CPPFLAGS)
    1.16 +GEN_DEPS.cc=	$(CXX) -E -MM $(DEFS) $(CPPFLAGS)
    1.17 +
    1.18 +## These are the library specific LDFLAGS
    1.19 +LDFLAGSICUDT=-nodefaultlibs -nostdlib
    1.20 +
    1.21 +## Additional flags when building libraries and with threads
    1.22 +THREADSCPPFLAGS = -D_REENTRANT
    1.23 +
    1.24 +## Compiler switch to embed a runtime search path
    1.25 +LD_RPATH=       -R'$$'ORIGIN 
    1.26 +LD_RPATH_PRE=   -R
    1.27 +
    1.28 +## Compiler switch to embed a library name
    1.29 +LD_SONAME = -h $(notdir $(MIDDLE_SO_TARGET))
    1.30 +
    1.31 +## Shared library options
    1.32 +LD_SOOPTIONS= -Wl,-Bsymbolic
    1.33 +
    1.34 +## The type of assembly needed when pkgdata is used for generating shared libraries.
    1.35 +## Only use this when not on x86 Solaris.
    1.36 +ifeq (strip $(GENCCODE_ASSEMBLY),)
    1.37 +GENCCODE_ASSEMBLY=-a sun
    1.38 +endif
    1.39 +
    1.40 +## Shared object suffix
    1.41 +SO=		so
    1.42 +## Non-shared intermediate object suffix
    1.43 +STATIC_O = ao
    1.44 +
    1.45 +## Compilation rules
    1.46 +%.$(STATIC_O): $(srcdir)/%.c
    1.47 +	$(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
    1.48 +%.o: $(srcdir)/%.c
    1.49 +	$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
    1.50 +
    1.51 +%.$(STATIC_O): $(srcdir)/%.cpp
    1.52 +	$(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
    1.53 +%.o: $(srcdir)/%.cpp
    1.54 +	$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
    1.55 +
    1.56 +
    1.57 +## Dependency rules
    1.58 +%.d : $(srcdir)/%.c
    1.59 +	@echo "generating dependency information for $<"
    1.60 +	@$(SHELL) -ec '$(GEN_DEPS.c) $< \
    1.61 +		| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
    1.62 +		[ -s $@ ] || rm -f $@'
    1.63 +
    1.64 +%.d : $(srcdir)/%.cpp
    1.65 +	@echo "generating dependency information for $<"
    1.66 +	@$(SHELL) -ec '$(GEN_DEPS.cc) $< \
    1.67 +		| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
    1.68 +		[ -s $@ ] || rm -f $@'
    1.69 +
    1.70 +## Versioned libraries rules
    1.71 +
    1.72 +%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
    1.73 +	$(RM) $@ && ln -s ${<F} $@
    1.74 +%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
    1.75 +	$(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
    1.76 +
    1.77 +## Remove shared library 's'
    1.78 +STATIC_PREFIX_WHEN_USED = 
    1.79 +STATIC_PREFIX = 
    1.80 +
    1.81 +## End Solaris-specific setup

mercurial