intl/icu/source/config/mh-linux-va

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 ## Linux-specific setup for Visual Age
michael@0 3 ## Copyright (c) 2003-2010, International Business Machines Corporation and
michael@0 4 ## others. All Rights Reserved.
michael@0 5
michael@0 6 ## Commands to generate dependency files
michael@0 7 GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
michael@0 8 GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
michael@0 9
michael@0 10 # -qroconst make the strings readonly, which is usually the default.
michael@0 11 # This helps in the data library,
michael@0 12 # -qproto assumes all functions are prototyped (for optimization)
michael@0 13 CFLAGS += -qproto -qroconst
michael@0 14 CXXFLAGS += -qproto -qroconst
michael@0 15
michael@0 16 GENCCODE_ASSEMBLY=-a gcc
michael@0 17 ## Flags for position independent code
michael@0 18 SHAREDLIBCFLAGS = -qpic=large
michael@0 19 SHAREDLIBCXXFLAGS = -qpic=large
michael@0 20 SHAREDLIBCPPFLAGS = -DPIC
michael@0 21
michael@0 22 ## Additional flags when building libraries and with threads
michael@0 23 THREADSCPPFLAGS = -D_REENTRANT
michael@0 24 LIBCPPFLAGS =
michael@0 25
michael@0 26 ## Compiler switch to embed a runtime search path
michael@0 27 LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN
michael@0 28 #LD_RPATH_PRE = -Wl,-rpath,
michael@0 29
michael@0 30 ## Compiler switch to embed a library name
michael@0 31 # The initial tab in the next line is to prevent icu-config from reading it.
michael@0 32 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
michael@0 33 #SH# # We can't depend on MIDDLE_SO_TARGET being set.
michael@0 34 #SH# LD_SONAME=
michael@0 35
michael@0 36 ## The type of assembly needed when pkgdata is used for generating shared libraries.
michael@0 37 GENCCODE_ASSEMBLY=-a gcc
michael@0 38
michael@0 39 ## Shared object suffix
michael@0 40 SO = so
michael@0 41 ## Non-shared intermediate object suffix
michael@0 42 STATIC_O = ao
michael@0 43
michael@0 44 ## Override the default mechanism for building shared objects
michael@0 45 SHLIB.c= $(CC) $(CFLAGS) -qmkshrobj -qpic=large -G $(LDFLAGS)
michael@0 46 SHLIB.cc= $(CXX) $(CXXFLAGS) -qmkshrobj -qpic=large -G $(LDFLAGS)
michael@0 47
michael@0 48 ## Compilation rules
michael@0 49 %.$(STATIC_O): $(srcdir)/%.c
michael@0 50 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
michael@0 51 %.o: $(srcdir)/%.c
michael@0 52 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
michael@0 53
michael@0 54 %.$(STATIC_O): $(srcdir)/%.cpp
michael@0 55 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
michael@0 56 %.o: $(srcdir)/%.cpp
michael@0 57 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
michael@0 58
michael@0 59
michael@0 60 ## Dependency rules
michael@0 61 %.d: $(srcdir)/%.c
michael@0 62 @echo "generating dependency information for $<"
michael@0 63 @$(SHELL) -ec '$(GEN_DEPS.c) $< > /dev/null'
michael@0 64
michael@0 65 %.d: $(srcdir)/%.cpp
michael@0 66 @echo "generating dependency information for $<"
michael@0 67 @$(SHELL) -ec '$(GEN_DEPS.cc) $< > /dev/null'
michael@0 68
michael@0 69 ## Versioned libraries rules
michael@0 70
michael@0 71 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
michael@0 72 $(RM) $@ && ln -s ${<F} $@
michael@0 73 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
michael@0 74 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
michael@0 75
michael@0 76 ## End Linux-specific setup
michael@0 77

mercurial