intl/icu/source/config/mh-beos

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 ## BeOS-specific setup
michael@0 3 ## Copyright (c) 2003-2006, International Business Machines Corporation and
michael@0 4 ## others. All Rights Reserved.
michael@0 5 ##
michael@0 6 ## Original author: Andrew Bachmann
michael@0 7
michael@0 8 ## Commands to generate dependency files
michael@0 9 GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
michael@0 10 GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
michael@0 11
michael@0 12 # Safe optimizations
michael@0 13 #OPTIMIZATIONS= -fdefault-inline -fdefer-pop -fforce-mem -fforce-addr \
michael@0 14 # -finline -finline-functions \
michael@0 15 # -fkeep-inline-functions -fkeep-static-consts -fbranch-count-reg \
michael@0 16 # -ffunction-cse -fstrength-reduce -fthread-jumps -fcse-follow-jumps \
michael@0 17 # -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt \
michael@0 18 # -fexpensive-optimizations -foptimize-register-move -fregmove \
michael@0 19 # -fschedule-insns -fschedule-insns2 -ffloat-store -funroll-loops \
michael@0 20 # -fmove-all-movables -freduce-all-givs -fpeephole \
michael@0 21 # -funroll-all-loops -ffunction-sections -fdata-sections
michael@0 22
michael@0 23 # BeOS gccs (geekgadgets + 2.95.3) have this old bug:
michael@0 24 # after this: const wchar_t x[] = L"foo";
michael@0 25 # x[2] is "optimized" into: (wchar_t)((char *)x)[2] (== 0)
michael@0 26 #
michael@0 27 # see also: http://gcc.gnu.org/ml/gcc-patches/2000-09/msg00454.html
michael@0 28 #
michael@0 29 # Unfortunately this behavior isn't controlled by a flag so we can't
michael@0 30 # use any O optimizations at all. (the behavior kicks in at -O1)
michael@0 31
michael@0 32 # Optimizations aren't currently defined in the mh files.
michael@0 33 # So Don't override any flags set by the user or runConfigureICU.
michael@0 34 #CFLAGS += $(OPTIMIZATIONS)
michael@0 35 #CXXFLAGS += $(OPTIMIZATIONS)
michael@0 36
michael@0 37 # Use -nostart instead of -shared
michael@0 38 SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -nostart
michael@0 39 SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -nostart
michael@0 40
michael@0 41 ## Flags for position independent code
michael@0 42 SHAREDLIBCFLAGS = -fPIC
michael@0 43 SHAREDLIBCXXFLAGS = -fPIC
michael@0 44 SHAREDLIBCPPFLAGS = -DPIC
michael@0 45
michael@0 46 ## Additional flags when building libraries and with threads
michael@0 47 LIBCPPFLAGS =
michael@0 48 THREADSCPPFLAGS =
michael@0 49
michael@0 50 ## Compiler switch to embed a runtime search path
michael@0 51 LD_RPATH=
michael@0 52 LD_RPATH_PRE = -Wl,-rpath,
michael@0 53
michael@0 54 ## Compiler switch to embed a library name
michael@0 55 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
michael@0 56
michael@0 57 ## Shared object suffix
michael@0 58 SO = so
michael@0 59 ## Non-shared intermediate object suffix
michael@0 60 STATIC_O = ao
michael@0 61
michael@0 62 ## Compilation rules
michael@0 63 %.$(STATIC_O): $(srcdir)/%.c
michael@0 64 $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
michael@0 65 %.o: $(srcdir)/%.c
michael@0 66 $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
michael@0 67
michael@0 68 %.$(STATIC_O): $(srcdir)/%.cpp
michael@0 69 $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
michael@0 70 %.o: $(srcdir)/%.cpp
michael@0 71 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
michael@0 72
michael@0 73
michael@0 74 ## Dependency rules
michael@0 75 %.d: $(srcdir)/%.c
michael@0 76 @echo "generating dependency information for $<"
michael@0 77 @$(SHELL) -ec '$(GEN_DEPS.c) $< \
michael@0 78 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
michael@0 79 [ -s $@ ] || rm -f $@'
michael@0 80
michael@0 81 %.d: $(srcdir)/%.cpp
michael@0 82 @echo "generating dependency information for $<"
michael@0 83 @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
michael@0 84 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
michael@0 85 [ -s $@ ] || rm -f $@'
michael@0 86
michael@0 87 ## Versioned libraries rules
michael@0 88
michael@0 89 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
michael@0 90 $(RM) $@ && ln -s ${<F} $@
michael@0 91 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
michael@0 92 $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
michael@0 93
michael@0 94 ## Bind internal references
michael@0 95
michael@0 96 # LDflags that pkgdata will use
michael@0 97 BIR_LDFLAGS= -Wl,-Bsymbolic
michael@0 98
michael@0 99 # Dependencies [i.e. map files] for the final library
michael@0 100 BIR_DEPS=
michael@0 101
michael@0 102 # Use LIBRARY_PATH instead of LD_LIBRARY_PATH
michael@0 103 LDLIBRARYPATH_ENVVAR= LIBRARY_PATH
michael@0 104
michael@0 105 ## End BeOS-specific setup
michael@0 106

mercurial