1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/config/mh-darwin Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,79 @@ 1.4 +## -*-makefile-*- 1.5 +## Darwin-specific setup (Darwin is the Mac OS X developer preview, successor 1.6 +## to Rhapsody, aka Mac OS X Server) 1.7 +## Copyright (c) 1999-2012 International Business Machines Corporation and 1.8 +## others. All Rights Reserved. 1.9 + 1.10 +## Flags for position independent code 1.11 +SHAREDLIBCFLAGS = -dynamic 1.12 +SHAREDLIBCXXFLAGS = -dynamic 1.13 +SHAREDLIBCPPFLAGS = 1.14 + 1.15 +# Do not export internal methods by default 1.16 +LIBCFLAGS += -fvisibility=hidden 1.17 +LIBCXXFLAGS += -fvisibility=hidden 1.18 + 1.19 +# Pad out the paths to the maximum possible length 1.20 +LD_FLAGS += -headerpad_max_install_names 1.21 + 1.22 +# We do not need to see the stderr message that the archive was made. 1.23 +ARFLAGS += -c 1.24 + 1.25 +## Commands to compile 1.26 +COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -fno-common -c 1.27 +COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -fno-common -c 1.28 + 1.29 +## Commands to make a shared library 1.30 +SHLIB.c= $(CC) -dynamiclib -dynamic $(CFLAGS) $(LDFLAGS) $(LD_SOOPTIONS) 1.31 +SHLIB.cc= $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS) 1.32 + 1.33 +## Compiler switches to embed a library name and version information 1.34 +LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name @executable_path/$(notdir $(MIDDLE_SO_TARGET)) 1.35 + 1.36 +## Compiler switch to embed a runtime search path 1.37 +LD_RPATH= 1.38 +LD_RPATH_PRE= -Wl,-rpath, 1.39 + 1.40 +## Environment variable to set a runtime search path 1.41 +LDLIBRARYPATH_ENVVAR = DYLD_LIBRARY_PATH 1.42 + 1.43 +GENCCODE_ASSEMBLY=-a gcc-darwin 1.44 + 1.45 +## Shared object suffix 1.46 +SO= dylib 1.47 +## Non-shared intermediate object suffix 1.48 +STATIC_O = ao 1.49 + 1.50 +## Override Versioned target for a shared library. 1.51 +FINAL_SO_TARGET= $(basename $(SO_TARGET)).$(SO_TARGET_VERSION).$(SO) 1.52 +MIDDLE_SO_TARGET= $(basename $(SO_TARGET)).$(SO_TARGET_VERSION_MAJOR).$(SO) 1.53 + 1.54 +## Compilation and dependency rules 1.55 +%.$(STATIC_O): $(srcdir)/%.c 1.56 + $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) 1.57 +%.o: $(srcdir)/%.c 1.58 + $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) 1.59 + 1.60 +%.$(STATIC_O): $(srcdir)/%.cpp 1.61 + $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) 1.62 +%.o: $(srcdir)/%.cpp 1.63 + $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS)) -MMD -MT "$*.d $*.o $*.$(STATIC_O)" -o $@ $<) 1.64 + 1.65 +## Versioned libraries rules 1.66 + 1.67 +%.$(SO_TARGET_VERSION_MAJOR).$(SO): %.$(SO_TARGET_VERSION).$(SO) 1.68 + $(RM) $@ && ln -s ${<F} $@ 1.69 +%.$(SO): %.$(SO_TARGET_VERSION_MAJOR).$(SO) 1.70 + $(RM) $@ && ln -s ${*F}.$(SO_TARGET_VERSION).$(SO) $@ 1.71 + 1.72 +# tzcode option 1.73 +TZORIG_EXTRA_CFLAGS=-DSTD_INSPIRED 1.74 + 1.75 +# genren opts 1.76 +GENREN_PL_OPTS=-x Mach-O -n '-g' -p '| c++filt' 1.77 + 1.78 +## Remove shared library 's' 1.79 +STATIC_PREFIX_WHEN_USED = 1.80 +STATIC_PREFIX = 1.81 + 1.82 +## End Darwin-specific setup