| OLD | NEW |
| 1 ## Makefile.in for ICU - tools/icuinfo | 1 ## Makefile.in for ICU - tools/icuinfo |
| 2 ## Copyright (c) 1999-2012, International Business Machines Corporation and | 2 ## Copyright (c) 1999-2015, International Business Machines Corporation and |
| 3 ## others. All Rights Reserved. | 3 ## others. All Rights Reserved. |
| 4 ## Madhu Katragadda | 4 ## Madhu Katragadda |
| 5 | 5 |
| 6 ## Source directory information | 6 ## Source directory information |
| 7 srcdir = @srcdir@ | 7 srcdir = @srcdir@ |
| 8 top_srcdir = @top_srcdir@ | 8 top_srcdir = @top_srcdir@ |
| 9 | 9 |
| 10 top_builddir = ../.. | 10 top_builddir = ../.. |
| 11 | 11 |
| 12 include $(top_builddir)/icudefs.mk | 12 include $(top_builddir)/icudefs.mk |
| 13 | 13 |
| 14 ## Build directory information | 14 ## Build directory information |
| 15 subdir = tools/icuinfo | 15 subdir = tools/icuinfo |
| 16 | 16 |
| 17 ## Extra files to remove for 'make clean' | 17 ## Extra files to remove for 'make clean' |
| 18 CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) | 18 CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) |
| 19 | 19 |
| 20 ## Target information | 20 ## Target information |
| 21 TARGET = icuinfo$(EXEEXT) | 21 TARGET = icuinfo$(EXEEXT) |
| 22 | 22 |
| 23 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools
/ctestfw | 23 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools
/ctestfw |
| 24 CPPFLAGS+= -I$(top_srcdir)/i18n | 24 CPPFLAGS+= -I$(top_srcdir)/i18n |
| 25 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | 25 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
| 26 | 26 |
| 27 OBJECTS = icuinfo.o | 27 OBJECTS = icuinfo.o |
| 28 PLUGIN_OBJECTS = testplug.o | 28 @PLUGINS_TRUE@PLUGIN_OBJECTS = testplug.o |
| 29 | 29 |
| 30 DEPS = $(OBJECTS:.o=.d) | 30 DEPS = $(OBJECTS:.o=.d) |
| 31 | 31 |
| 32 # pass some information | 32 # pass some information |
| 33 | 33 |
| 34 ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)
/config/icuinfo.xml -v -K | 34 ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)
/config/icuinfo.xml -v -K |
| 35 | 35 |
| 36 ## List of phony targets | 36 ## List of phony targets |
| 37 .PHONY : all all-local install install-local clean clean-local \ | 37 .PHONY : all all-local install install-local clean clean-local \ |
| 38 distclean distclean-local dist dist-local check check-local plugin-check | 38 distclean distclean-local dist dist-local check check-local plugin-check |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | 75 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
| 76 $(POST_BUILD_STEP) | 76 $(POST_BUILD_STEP) |
| 77 | 77 |
| 78 PLUGIN=$(LIBPREFIX)plugin.$(SO) | 78 PLUGIN=$(LIBPREFIX)plugin.$(SO) |
| 79 SO_TARGET=$(PLUGIN) | 79 SO_TARGET=$(PLUGIN) |
| 80 | 80 |
| 81 PLUGINDIR=$(shell pwd) | 81 PLUGINDIR=$(shell pwd) |
| 82 | 82 |
| 83 PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt | 83 PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt |
| 84 | 84 |
| 85 CFLAGS+=$(SHAREDLIBCFLAGS) |
| 86 |
| 87 @PLUGINS_TRUE@HAVE_PLUGINS=yes |
| 88 |
| 89 ifeq ($(HAVE_PLUGINS),yes) |
| 85 $(PLUGINFILE): Makefile | 90 $(PLUGINFILE): Makefile |
| 86 echo "$(CURR_FULL_DIR)/$(PLUGIN) myPlugin x=4" > $@ | 91 echo "$(CURR_FULL_DIR)/$(PLUGIN) myPlugin x=4" > $@ |
| 87 | 92 |
| 88 CFLAGS+=$(SHAREDLIBCFLAGS) | |
| 89 | 93 |
| 90 $(PLUGIN): $(PLUGIN_OBJECTS) | 94 $(PLUGIN): $(PLUGIN_OBJECTS) |
| 91 $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) | 95 $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) |
| 92 | 96 |
| 93 plugin: $(PLUGIN) | 97 plugin: $(PLUGIN) |
| 94 | 98 |
| 95 plugin-check: $(PLUGIN) $(PLUGINFILE) | 99 plugin-check: $(PLUGIN) $(PLUGINFILE) |
| 96 $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L | 100 $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L |
| 97 | 101 else |
| 102 plugin plugin-check $(PLUGIN): |
| 103 » @echo "Plugins are disabled (use --enable-plugins to enable)" |
| 104 endif |
| 98 | 105 |
| 99 ifeq (,$(MAKECMDGOALS)) | 106 ifeq (,$(MAKECMDGOALS)) |
| 100 -include $(DEPS) | 107 -include $(DEPS) |
| 101 else | 108 else |
| 102 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | 109 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) |
| 103 -include $(DEPS) | 110 -include $(DEPS) |
| 104 endif | 111 endif |
| 105 endif | 112 endif |
| 106 | 113 |
| OLD | NEW |