X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..5ea0322b6ab2af986e4c764284141380031dd014:/icuSources/tools/icuinfo/Makefile.in?ds=inline diff --git a/icuSources/tools/icuinfo/Makefile.in b/icuSources/tools/icuinfo/Makefile.in index 4ba741d9..d6905406 100644 --- a/icuSources/tools/icuinfo/Makefile.in +++ b/icuSources/tools/icuinfo/Makefile.in @@ -1,5 +1,5 @@ ## Makefile.in for ICU - tools/icuinfo -## Copyright (c) 1999-2011, International Business Machines Corporation and +## Copyright (c) 1999-2015, International Business Machines Corporation and ## others. All Rights Reserved. ## Madhu Katragadda @@ -25,13 +25,13 @@ CPPFLAGS+= -I$(top_srcdir)/i18n LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) OBJECTS = icuinfo.o -PLUGIN_OBJECTS = testplug.o +@PLUGINS_TRUE@PLUGIN_OBJECTS = testplug.o DEPS = $(OBJECTS:.o=.d) # pass some information -ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v +ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v -K ## List of phony targets .PHONY : all all-local install install-local clean clean-local \ @@ -82,10 +82,14 @@ PLUGINDIR=$(shell pwd) PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt +CFLAGS+=$(SHAREDLIBCFLAGS) + +@PLUGINS_TRUE@HAVE_PLUGINS=yes + +ifeq ($(HAVE_PLUGINS),yes) $(PLUGINFILE): Makefile echo "$(CURR_FULL_DIR)/$(PLUGIN) myPlugin x=4" > $@ -CFLAGS+=$(SHAREDLIBCFLAGS) $(PLUGIN): $(PLUGIN_OBJECTS) $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) @@ -94,7 +98,10 @@ plugin: $(PLUGIN) plugin-check: $(PLUGIN) $(PLUGINFILE) $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L - +else +plugin plugin-check $(PLUGIN): + @echo "Plugins are disabled (use --enable-plugins to enable)" +endif ifeq (,$(MAKECMDGOALS)) -include $(DEPS)