intl/icu/source/config/mh-linux

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.

     1 ## -*-makefile-*-
     2 ## Linux-specific setup
     3 ## Copyright (c) 1999-2013, International Business Machines Corporation and
     4 ## others. All Rights Reserved.
     6 ## Commands to generate dependency files
     7 GEN_DEPS.c=  $(CC) -E -MM $(DEFS) $(CPPFLAGS)
     8 GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) $(CXXFLAGS)
    10 ## Flags for position independent code
    11 SHAREDLIBCFLAGS = -fPIC
    12 SHAREDLIBCXXFLAGS = -fPIC
    13 SHAREDLIBCPPFLAGS = -DPIC
    15 ## Additional flags when building libraries and with threads
    16 THREADSCPPFLAGS = -D_REENTRANT
    17 LIBCPPFLAGS =
    19 ## Compiler switch to embed a runtime search path
    20 LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN 
    21 LD_RPATH_PRE = -Wl,-rpath,
    23 ## These are the library specific LDFLAGS
    24 LDFLAGSICUDT=-nodefaultlibs -nostdlib
    26 ## Compiler switch to embed a library name
    27 # The initial tab in the next line is to prevent icu-config from reading it.
    28 	LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
    29 #SH# # We can't depend on MIDDLE_SO_TARGET being set.
    30 #SH# LD_SONAME=
    32 ## Shared library options
    33 LD_SOOPTIONS= -Wl,-Bsymbolic
    35 ## Shared object suffix
    36 SO = so
    37 ## Non-shared intermediate object suffix
    38 STATIC_O = ao
    40 ## Compilation rules
    41 %.$(STATIC_O): $(srcdir)/%.c
    42 	$(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -o $@ $<)
    43 %.o: $(srcdir)/%.c
    44 	$(call SILENT_COMPILE,$(strip $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS)) -o $@ $<)
    46 %.$(STATIC_O): $(srcdir)/%.cpp
    47 	$(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS)) -o $@ $<)
    48 %.o: $(srcdir)/%.cpp
    49 	$(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS)) -o $@ $<)
    52 ## Dependency rules
    53 %.d: $(srcdir)/%.c
    54 	$(call ICU_MSG,(deps)) $<
    55 	@$(SHELL) -ec '$(GEN_DEPS.c) $< \
    56 		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
    57 		[ -s $@ ] || rm -f $@'
    59 %.d: $(srcdir)/%.cpp
    60 	$(call ICU_MSG,(deps)) $<
    61 	@$(SHELL) -ec '$(GEN_DEPS.cc) $< \
    62 		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
    63 		[ -s $@ ] || rm -f $@'
    65 ## Versioned libraries rules
    67 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
    68 	$(RM) $@ && ln -s ${<F} $@
    69 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
    70 	$(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
    72 ##  Bind internal references
    74 # LDflags that pkgdata will use
    75 BIR_LDFLAGS= -Wl,-Bsymbolic
    77 # Dependencies [i.e. map files] for the final library
    78 BIR_DEPS=
    80 ## Remove shared library 's'
    81 STATIC_PREFIX_WHEN_USED = 
    82 STATIC_PREFIX = 
    84 ## End Linux-specific setup

mercurial