intl/icu/source/config/mh-mpras

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 ## MP-RAS specific setup
michael@0 3 ## Copyright (c) 2003-2004, International Business Machines Corporation and
michael@0 4 ## others. All Rights Reserved.
michael@0 5 ##
michael@0 6 ## Original contributer: Jason Gordon from NCR
michael@0 7
michael@0 8 ## Flags for position independent code
michael@0 9 SHAREDLIBCFLAGS = -K PIC
michael@0 10 SHAREDLIBCXXFLAGS = -K PIC
michael@0 11 SHAREDLIBCPPFLAGS = -DPIC
michael@0 12
michael@0 13 ## Commands to generate dependency files
michael@0 14 GEN_DEPS.c= $(CC) -Hnocopyr -I/usr/include -Hcpplvl=3 -Xa -Hmake $(DEFS) $(CPPFLAGS)
michael@0 15 GEN_DEPS.cc= $(CXX) -Hnocopyr -I/usr/include -Hcpplvl=3 -Xa -Hmake $(DEFS) $(CPPFLAGS)
michael@0 16
michael@0 17 ## Commands to link
michael@0 18 LINK.c= $(CC) $(CXXFLAGS) $(LDFLAGS)
michael@0 19 LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS)
michael@0 20
michael@0 21 ## Commands to make a shared library
michael@0 22 SHLIB.c= $(CC) $(CFLAGS) $(LDFLAGS) -G
michael@0 23 SHLIB.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) -G
michael@0 24
michael@0 25 ## Compiler switch to embed a runtime search path
michael@0 26 LD_RPATH= -YP,
michael@0 27 LD_RPATH_PRE=
michael@0 28
michael@0 29 ## Compiler switch to embed a library name
michael@0 30 LD_SONAME = -h $(notdir $(MIDDLE_SO_TARGET))
michael@0 31
michael@0 32 ## Shared object suffix
michael@0 33 SO= so
michael@0 34 ## Non-shared intermediate object suffix
michael@0 35 STATIC_O = o
michael@0 36
michael@0 37 ## Compilation rules
michael@0 38 %.$(STATIC_O): $(srcdir)/%.c
michael@0 39 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
michael@0 40 %.o: $(srcdir)/%.c
michael@0 41 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
michael@0 42
michael@0 43 %.$(STATIC_O): $(srcdir)/%.cpp
michael@0 44 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
michael@0 45 %.o: $(srcdir)/%.cpp
michael@0 46 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
michael@0 47
michael@0 48
michael@0 49 ## Dependency rules
michael@0 50 %.d : $(srcdir)/%.c
michael@0 51 @echo "generating dependency information for $<"
michael@0 52 @$(GEN_DEPS.c) $< > $@
michael@0 53
michael@0 54 %.d : $(srcdir)/%.cpp
michael@0 55 @echo "generating dependency information for $<"
michael@0 56 @$(GEN_DEPS.cc) $< > $@
michael@0 57
michael@0 58 ## Versioned libraries rules
michael@0 59
michael@0 60 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
michael@0 61 $(RM) $@ && ln -s ${<F} $@
michael@0 62 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
michael@0 63 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
michael@0 64

mercurial