intl/icu/source/config/mh-solaris

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 ## -*-makefile-*-
michael@0 2 ## Solaris-specific setup using Sun's compilers
michael@0 3 ## Copyright (c) 1999-2010, International Business Machines Corporation and
michael@0 4 ## others. All Rights Reserved.
michael@0 5
michael@0 6 ## Flags for position independent code
michael@0 7 SHAREDLIBCFLAGS = -KPIC
michael@0 8 SHAREDLIBCXXFLAGS = -KPIC
michael@0 9 SHAREDLIBCPPFLAGS = -DPIC
michael@0 10
michael@0 11 ## Commands to generate dependency files
michael@0 12 GEN_DEPS.c= $(CC) -xM $(DEFS) $(CPPFLAGS)
michael@0 13 GEN_DEPS.cc= $(CXX) -xM $(DEFS) $(CPPFLAGS)
michael@0 14
michael@0 15 ifeq ($(UCLN_NO_AUTO_CLEANUP),0)
michael@0 16 # set up init point.
michael@0 17 UCLN_FINI = ucln_fini$(TARGET_STUBNAME)_$(SO_TARGET_VERSION_MAJOR)$(ICULIBSUFFIXCNAME)
michael@0 18 CPPFLAGS_FINI = -DUCLN_FINI=$(UCLN_FINI)
michael@0 19 LDFLAGS_FINI = -zfiniarray=$(UCLN_FINI)
michael@0 20
michael@0 21 CPPFLAGSICUUC += $(CPPFLAGS_FINI)
michael@0 22 LDFLAGSICUUC += $(LDFLAGS_FINI)
michael@0 23 CPPFLAGSICUIO += $(CPPFLAGS_FINI)
michael@0 24 LDFLAGSICUIO += $(LDFLAGS_FINI)
michael@0 25 CPPFLAGSICUI18N += $(CPPFLAGS_FINI)
michael@0 26 LDFLAGSICUI18N += $(LDFLAGS_FINI)
michael@0 27 CPPFLAGSCTESTFW += $(CPPFLAGS_FINI)
michael@0 28 LDFLAGSCTESTFW += $(LDFLAGS_FINI)
michael@0 29
michael@0 30 # ICUUC, ICUIO, ICUI18N, CTESTFW
michael@0 31 endif
michael@0 32
michael@0 33 # -mt means 'compiles and links a multithreaded program'
michael@0 34 THREADSCFLAGS += -mt
michael@0 35 THREADSCXXFLAGS += -mt
michael@0 36
michael@0 37 ## Commands to link
michael@0 38 ## For Sun Workshop, use CC to link to bring in C++ runtime
michael@0 39 LINK.c= $(CXX) $(CXXFLAGS) $(LDFLAGS)
michael@0 40 LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS)
michael@0 41
michael@0 42 ## Commands to make a shared library
michael@0 43 SHLIB.c= $(CC) $(CFLAGS) $(LDFLAGS) -G
michael@0 44 SHLIB.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) -G
michael@0 45
michael@0 46 ## Compiler switch to embed a runtime search path
michael@0 47 LD_RPATH= -R'$$'ORIGIN
michael@0 48 LD_RPATH_PRE= -R
michael@0 49
michael@0 50 #LIBRARY_PATH_PREFIX=/usr/lib/lwp:
michael@0 51
michael@0 52 ## Compiler switch to embed a library name
michael@0 53 LD_SONAME = -h $(notdir $(MIDDLE_SO_TARGET))
michael@0 54
michael@0 55 ## Shared object suffix
michael@0 56 SO= so
michael@0 57 ## Non-shared intermediate object suffix
michael@0 58 STATIC_O = o
michael@0 59
michael@0 60 ## Compilation rules
michael@0 61 %.$(STATIC_O): $(srcdir)/%.c
michael@0 62 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
michael@0 63 %.o: $(srcdir)/%.c
michael@0 64 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
michael@0 65
michael@0 66 %.$(STATIC_O): $(srcdir)/%.cpp
michael@0 67 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
michael@0 68 %.o: $(srcdir)/%.cpp
michael@0 69 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
michael@0 70
michael@0 71
michael@0 72 ## Dependency rules
michael@0 73 %.d : $(srcdir)/%.c
michael@0 74 @echo "generating dependency information for $<"
michael@0 75 @$(GEN_DEPS.c) $< > $@
michael@0 76
michael@0 77 %.d : $(srcdir)/%.cpp
michael@0 78 @echo "generating dependency information for $<"
michael@0 79 @$(GEN_DEPS.cc) $< > $@
michael@0 80
michael@0 81 ## Versioned libraries rules
michael@0 82
michael@0 83 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
michael@0 84 $(RM) $@ && ln -s ${<F} $@
michael@0 85 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
michael@0 86 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
michael@0 87
michael@0 88 #
michael@0 89 ifeq (strip $(GENCCODE_ASSEMBLY),)
michael@0 90 BIR_LDFLAGS= -Wl,-M,$(NAME).map -Wl,-B,symbolic -Wl,-B,eliminate
michael@0 91 BIR_DEPS= $(NAME).map
michael@0 92 endif
michael@0 93
michael@0 94 ## Remove shared library 's'
michael@0 95 STATIC_PREFIX_WHEN_USED =
michael@0 96 STATIC_PREFIX =
michael@0 97
michael@0 98 ## End Solaris-specific setup

mercurial