1 ## Makefile.in for ICU - tools/icuinfo
2 ## Copyright (c) 1999-2015, International Business Machines Corporation and
3 ## others. All Rights Reserved.
6 ## Source directory information
8 top_srcdir = @top_srcdir@
12 include $(top_builddir)/icudefs.mk
14 ## Build directory information
15 subdir = tools/icuinfo
17 ## Extra files to remove for 'make clean'
18 CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
21 TARGET = icuinfo$(EXEEXT)
23 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools/ctestfw
24 CPPFLAGS+= -I$(top_srcdir)/i18n
25 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
28 @PLUGINS_TRUE@PLUGIN_OBJECTS = testplug.o
30 DEPS = $(OBJECTS:.o=.d)
32 # pass some information
34 ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v -K
36 ## List of phony targets
37 .PHONY : all all-local install install-local clean clean-local \
38 distclean distclean-local dist dist-local check check-local plugin-check
43 ## List of standard targets
45 install: install-local
47 distclean : distclean-local
49 check: all check-local
53 install-local: all-local
54 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
55 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
60 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
61 $(RMV) $(TARGET) $(OBJECTS)
63 distclean-local: clean-local
66 check-local: $(TARGET)
67 $(INVOKE) ./$(TARGET) $(ICUINFO_OPTS)
69 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
71 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
72 -include Makefile.local
74 $(TARGET) : $(OBJECTS)
75 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
78 PLUGIN=$(LIBPREFIX)plugin.$(SO)
81 PLUGINDIR=$(shell pwd)
83 PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt
85 CFLAGS+=$(SHAREDLIBCFLAGS)
87 @PLUGINS_TRUE@HAVE_PLUGINS=yes
89 ifeq ($(HAVE_PLUGINS),yes)
90 $(PLUGINFILE): Makefile
91 echo "$(CURR_FULL_DIR)/$(PLUGIN) myPlugin x=4" > $@
94 $(PLUGIN): $(PLUGIN_OBJECTS)
95 $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
99 plugin-check: $(PLUGIN) $(PLUGINFILE)
100 $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L
102 plugin plugin-check $(PLUGIN):
103 @echo "Plugins are disabled (use --enable-plugins to enable)"
106 ifeq (,$(MAKECMDGOALS))
109 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)