intl/icu/source/tools/toolutil/Makefile.in

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 #******************************************************************************
michael@0 2 #
michael@0 3 # Copyright (C) 1999-2011, International Business Machines
michael@0 4 # Corporation and others. All Rights Reserved.
michael@0 5 #
michael@0 6 #******************************************************************************
michael@0 7 ## Makefile.in for ICU - tools/toolutil
michael@0 8 ## Steven R. Loomis
michael@0 9
michael@0 10 ## Source directory information
michael@0 11 srcdir = @srcdir@
michael@0 12 top_srcdir = @top_srcdir@
michael@0 13
michael@0 14 top_builddir = ../..
michael@0 15
michael@0 16 ## All the flags and other definitions are included here.
michael@0 17 include $(top_builddir)/icudefs.mk
michael@0 18
michael@0 19 ## Build directory information
michael@0 20 subdir = tools/toolutil
michael@0 21
michael@0 22 ## Extra files to remove for 'make clean'
michael@0 23 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
michael@0 24
michael@0 25 ## Target information
michael@0 26
michael@0 27 TARGET_STUBNAME=$(TOOLUTIL_STUBNAME)
michael@0 28
michael@0 29 ifneq ($(ENABLE_STATIC),)
michael@0 30 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
michael@0 31 endif
michael@0 32
michael@0 33 ifneq ($(ENABLE_SHARED),)
michael@0 34 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
michael@0 35 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
michael@0 36 endif
michael@0 37
michael@0 38 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
michael@0 39
michael@0 40 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
michael@0 41 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
michael@0 42 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
michael@0 43 CFLAGS += $(LIBCFLAGS)
michael@0 44 CXXFLAGS += $(LIBCXXFLAGS)
michael@0 45
michael@0 46 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS)
michael@0 47
michael@0 48 # from icuinfo
michael@0 49 CPPFLAGS+= "-DU_BUILD=\"@build@\"" "-DU_HOST=\"@host@\"" "-DU_CC=\"@CC@\"" "-DU_CXX=\"@CXX@\""
michael@0 50
michael@0 51
michael@0 52 DEFS += -DU_TOOLUTIL_IMPLEMENTATION
michael@0 53 LDFLAGS += $(LDFLAGSICUTOOLUTIL)
michael@0 54 LIBS = $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
michael@0 55
michael@0 56 OBJECTS = filestrm.o package.o pkgitems.o swapimpl.o toolutil.o unewdata.o \
michael@0 57 denseranges.o \
michael@0 58 ucm.o ucmstate.o uoptions.o uparse.o \
michael@0 59 ucbuf.o xmlparser.o writesrc.o \
michael@0 60 pkg_icu.o pkg_genc.o pkg_gencmn.o ppucd.o flagparser.o filetools.o \
michael@0 61 udbgutil.o dbgutil.o ucln_tu.o
michael@0 62
michael@0 63 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
michael@0 64
michael@0 65 DEPS = $(OBJECTS:.o=.d)
michael@0 66
michael@0 67 -include Makefile.local
michael@0 68
michael@0 69 ## List of phony targets
michael@0 70 .PHONY : all all-local install install-local clean clean-local \
michael@0 71 distclean distclean-local install-library dist \
michael@0 72 dist-local check check-local
michael@0 73
michael@0 74 ## Clear suffix list
michael@0 75 .SUFFIXES :
michael@0 76
michael@0 77 ## List of standard targets
michael@0 78 all: all-local
michael@0 79 install: install-local
michael@0 80 clean: clean-local
michael@0 81 distclean : distclean-local
michael@0 82 dist: dist-local
michael@0 83 check: all check-local
michael@0 84
michael@0 85 all-local: $(ALL_TARGETS)
michael@0 86
michael@0 87 install-local: install-library
michael@0 88
michael@0 89 install-library: all-local
michael@0 90 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
michael@0 91 ifneq ($(ENABLE_STATIC),)
michael@0 92 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
michael@0 93 endif
michael@0 94 ifneq ($(ENABLE_SHARED),)
michael@0 95 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
michael@0 96 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
michael@0 97 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
michael@0 98 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
michael@0 99 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
michael@0 100 endif
michael@0 101 endif
michael@0 102 ifneq ($(IMPORT_LIB_EXT),)
michael@0 103 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
michael@0 104 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
michael@0 105 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
michael@0 106 endif
michael@0 107 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
michael@0 108 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
michael@0 109 endif
michael@0 110 endif
michael@0 111 endif
michael@0 112
michael@0 113 dist-local:
michael@0 114
michael@0 115 clean-local:
michael@0 116 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
michael@0 117 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
michael@0 118
michael@0 119 distclean-local: clean-local
michael@0 120 $(RMV) Makefile
michael@0 121
michael@0 122 check-local: all-local
michael@0 123
michael@0 124 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
michael@0 125 cd $(top_builddir) \
michael@0 126 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
michael@0 127
michael@0 128 ifneq ($(ENABLE_STATIC),)
michael@0 129 $(TARGET): $(STATIC_OBJECTS)
michael@0 130 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
michael@0 131 $(RANLIB) $@
michael@0 132 endif
michael@0 133
michael@0 134 ifneq ($(ENABLE_SHARED),)
michael@0 135 $(SHARED_OBJECT): $(OBJECTS)
michael@0 136 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
michael@0 137 ifeq ($(ENABLE_RPATH),YES)
michael@0 138 ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
michael@0 139 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
michael@0 140 endif
michael@0 141 endif
michael@0 142 endif
michael@0 143
michael@0 144 ifeq (,$(MAKECMDGOALS))
michael@0 145 -include $(DEPS)
michael@0 146 else
michael@0 147 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
michael@0 148 -include $(DEPS)
michael@0 149 endif
michael@0 150 endif
michael@0 151

mercurial