intl/icu/source/config/mh-haiku

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 ## -*-makefile-*-
     2 ## haiku-specific setup
     3 ## Copyright (c) 2010-2012, International Business Machines Corporation and
     4 ## others. All Rights Reserved.
     5 ##
     7 ## Commands to generate dependency files
     8 GEN_DEPS.c=  $(CC) -E -MM $(DEFS) $(CPPFLAGS)
     9 GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
    11 ## Flags for position independent code
    12 SHAREDLIBCFLAGS = -fPIC
    13 SHAREDLIBCXXFLAGS = -fPIC
    14 SHAREDLIBCPPFLAGS = -DPIC
    16 ## Additional flags when building libraries and with threads
    17 LIBCPPFLAGS =
    18 THREADSCPPFLAGS =
    20 #
    21 CPPFLAGS += -D__STDC_ISO_10646__ -DU_CHARSET_IS_UTF8=1
    23 ## Compiler switch to embed a runtime search path
    24 LD_RPATH=
    25 LD_RPATH_PRE = -Wl,-rpath,
    27 ## Compiler switch to embed a library name
    28 LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
    30 ## Shared object suffix
    31 SO = so
    32 ## Non-shared intermediate object suffix
    33 STATIC_O = ao
    35 ## Compilation rules
    36 %.$(STATIC_O): $(srcdir)/%.c
    37 	$(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
    38 %.o: $(srcdir)/%.c
    39 	$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
    41 %.$(STATIC_O): $(srcdir)/%.cpp
    42 	$(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
    43 %.o: $(srcdir)/%.cpp
    44 	$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
    47 ## Dependency rules
    48 %.d: $(srcdir)/%.c
    49 	@echo "generating dependency information for $<"
    50 	@$(SHELL) -ec '$(GEN_DEPS.c) $< \
    51 		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
    52 		[ -s $@ ] || rm -f $@'
    54 %.d: $(srcdir)/%.cpp
    55 	@echo "generating dependency information for $<"
    56 	@$(SHELL) -ec '$(GEN_DEPS.cc) $< \
    57 		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
    58 		[ -s $@ ] || rm -f $@'
    60 ## Versioned libraries rules
    62 %.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
    63 	$(RM) $@ && ln -s ${<F} $@
    64 %.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
    65 	$(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
    67 ##  Bind internal references
    69 # LDflags that pkgdata will use
    70 BIR_LDFLAGS= -Wl,-Bsymbolic
    72 # Dependencies [i.e. map files] for the final library
    73 BIR_DEPS=
    75 # Use LIBRARY_PATH instead of LD_LIBRARY_PATH
    76 LDLIBRARYPATH_ENVVAR= LIBRARY_PATH
    78 ## End haiku-specific setup

mercurial