intl/icu/source/config/mh-haiku

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/config/mh-haiku	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,78 @@
     1.4 +## -*-makefile-*-
     1.5 +## haiku-specific setup
     1.6 +## Copyright (c) 2010-2012, International Business Machines Corporation and
     1.7 +## others. All Rights Reserved.
     1.8 +##
     1.9 +
    1.10 +## Commands to generate dependency files
    1.11 +GEN_DEPS.c=  $(CC) -E -MM $(DEFS) $(CPPFLAGS)
    1.12 +GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
    1.13 +
    1.14 +## Flags for position independent code
    1.15 +SHAREDLIBCFLAGS = -fPIC
    1.16 +SHAREDLIBCXXFLAGS = -fPIC
    1.17 +SHAREDLIBCPPFLAGS = -DPIC
    1.18 +
    1.19 +## Additional flags when building libraries and with threads
    1.20 +LIBCPPFLAGS =
    1.21 +THREADSCPPFLAGS =
    1.22 +
    1.23 +#
    1.24 +CPPFLAGS += -D__STDC_ISO_10646__ -DU_CHARSET_IS_UTF8=1
    1.25 +
    1.26 +## Compiler switch to embed a runtime search path
    1.27 +LD_RPATH=
    1.28 +LD_RPATH_PRE = -Wl,-rpath,
    1.29 +
    1.30 +## Compiler switch to embed a library name
    1.31 +LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
    1.32 +
    1.33 +## Shared object suffix
    1.34 +SO = so
    1.35 +## Non-shared intermediate object suffix
    1.36 +STATIC_O = ao
    1.37 +
    1.38 +## Compilation rules
    1.39 +%.$(STATIC_O): $(srcdir)/%.c
    1.40 +	$(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
    1.41 +%.o: $(srcdir)/%.c
    1.42 +	$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
    1.43 +
    1.44 +%.$(STATIC_O): $(srcdir)/%.cpp
    1.45 +	$(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
    1.46 +%.o: $(srcdir)/%.cpp
    1.47 +	$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
    1.48 +
    1.49 +
    1.50 +## Dependency rules
    1.51 +%.d: $(srcdir)/%.c
    1.52 +	@echo "generating dependency information for $<"
    1.53 +	@$(SHELL) -ec '$(GEN_DEPS.c) $< \
    1.54 +		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
    1.55 +		[ -s $@ ] || rm -f $@'
    1.56 +
    1.57 +%.d: $(srcdir)/%.cpp
    1.58 +	@echo "generating dependency information for $<"
    1.59 +	@$(SHELL) -ec '$(GEN_DEPS.cc) $< \
    1.60 +		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
    1.61 +		[ -s $@ ] || rm -f $@'
    1.62 +
    1.63 +## Versioned libraries rules
    1.64 +
    1.65 +%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
    1.66 +	$(RM) $@ && ln -s ${<F} $@
    1.67 +%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
    1.68 +	$(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
    1.69 +
    1.70 +##  Bind internal references
    1.71 +
    1.72 +# LDflags that pkgdata will use
    1.73 +BIR_LDFLAGS= -Wl,-Bsymbolic
    1.74 +
    1.75 +# Dependencies [i.e. map files] for the final library
    1.76 +BIR_DEPS=
    1.77 +
    1.78 +# Use LIBRARY_PATH instead of LD_LIBRARY_PATH
    1.79 +LDLIBRARYPATH_ENVVAR= LIBRARY_PATH
    1.80 +
    1.81 +## End haiku-specific setup

mercurial