intl/icu/source/config/mh-qnx

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 ## QNX-specific setup
michael@0 3 ## Copyright (c) 1999-2006, International Business Machines Corporation and
michael@0 4 ## others. All Rights Reserved.
michael@0 5 ##
michael@0 6 ## Provided By: Chris McKillop <cdm@qnx.com>
michael@0 7
michael@0 8
michael@0 9 #
michael@0 10 # Create shared libs that "work" properly.
michael@0 11 #
michael@0 12
michael@0 13 ## Commands to generate dependency files
michael@0 14 GEN_DEPS.c= $(CC) -E -Wp,-MM $(DEFS) $(CPPFLAGS)
michael@0 15 GEN_DEPS.cc= $(CXX) -E -Wp,-MM $(DEFS) $(CPPFLAGS)
michael@0 16
michael@0 17 ## Flags for position independent code
michael@0 18 SHAREDLIBCFLAGS = -shared
michael@0 19 SHAREDLIBCXXFLAGS = -shared
michael@0 20 # SHAREDLIBCPPFLAGS = -shared
michael@0 21
michael@0 22 #
michael@0 23 # Always generatate PIC code.
michael@0 24 #
michael@0 25 #CPPFLAGS+=-shared
michael@0 26
michael@0 27 ## Additional flags when building libraries and with threads
michael@0 28 LIBCPPFLAGS =
michael@0 29 THREADSCPPFLAGS =
michael@0 30
michael@0 31 ## Compiler switch to embed a runtime search path
michael@0 32 LD_RPATH=
michael@0 33 LD_RPATH_PRE = -Wl,-rpath,
michael@0 34
michael@0 35 ## Compiler switch to embed a library name
michael@0 36 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
michael@0 37
michael@0 38 ## Shared object suffix
michael@0 39 SO = so
michael@0 40 ## Non-shared intermediate object suffix
michael@0 41 STATIC_O = ao
michael@0 42
michael@0 43 ## Compilation rules
michael@0 44 %.$(STATIC_O): $(srcdir)/%.c
michael@0 45 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
michael@0 46 %.o: $(srcdir)/%.c
michael@0 47 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
michael@0 48
michael@0 49 %.$(STATIC_O): $(srcdir)/%.cpp
michael@0 50 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
michael@0 51 %.o: $(srcdir)/%.cpp
michael@0 52 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
michael@0 53
michael@0 54
michael@0 55 ## Dependency rules
michael@0 56 %.d: $(srcdir)/%.c
michael@0 57 @echo "generating dependency information for $<"
michael@0 58 @$(SHELL) -ec '$(GEN_DEPS.c) $< \
michael@0 59 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
michael@0 60 [ -s $@ ] || rm -f $@'
michael@0 61
michael@0 62 %.d: $(srcdir)/%.cpp
michael@0 63 @echo "generating dependency information for $<"
michael@0 64 @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
michael@0 65 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
michael@0 66 [ -s $@ ] || rm -f $@'
michael@0 67
michael@0 68 ## Versioned libraries rules
michael@0 69 ##
michael@0 70 ## QNX wants the SONAME in the shared lib to match the final "real" filename.
michael@0 71 ## (to ease in packaging with QNX's native package format)
michael@0 72 ##
michael@0 73 MIDDLE_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION_MAJOR)
michael@0 74 FINAL_SO_TARGET = $(MIDDLE_SO_TARGET)
michael@0 75
michael@0 76 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
michael@0 77 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION_MAJOR) $@
michael@0 78 #%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
michael@0 79 # $(RM) $@ && ln -s ${<F} $@
michael@0 80 #%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
michael@0 81 # $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
michael@0 82
michael@0 83 ## Bind internal references
michael@0 84
michael@0 85 # LDflags that pkgdata will use
michael@0 86 BIR_LDFLAGS= -Wl,-Bsymbolic
michael@0 87
michael@0 88 # Dependencies [i.e. map files] for the final library
michael@0 89 BIR_DEPS=
michael@0 90
michael@0 91 ## End QNX-specific setup
michael@0 92

mercurial