michael@0: ## Makefile.in for ICU - tools/icuinfo michael@0: ## Copyright (c) 1999-2012, International Business Machines Corporation and michael@0: ## others. All Rights Reserved. michael@0: ## Madhu Katragadda michael@0: michael@0: ## Source directory information michael@0: srcdir = @srcdir@ michael@0: top_srcdir = @top_srcdir@ michael@0: michael@0: top_builddir = ../.. michael@0: michael@0: include $(top_builddir)/icudefs.mk michael@0: michael@0: ## Build directory information michael@0: subdir = tools/icuinfo michael@0: michael@0: ## Extra files to remove for 'make clean' michael@0: CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) michael@0: michael@0: ## Target information michael@0: TARGET = icuinfo$(EXEEXT) michael@0: michael@0: CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools/ctestfw michael@0: CPPFLAGS+= -I$(top_srcdir)/i18n michael@0: LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) michael@0: michael@0: OBJECTS = icuinfo.o michael@0: PLUGIN_OBJECTS = testplug.o michael@0: michael@0: DEPS = $(OBJECTS:.o=.d) michael@0: michael@0: # pass some information michael@0: michael@0: ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v -K michael@0: michael@0: ## List of phony targets michael@0: .PHONY : all all-local install install-local clean clean-local \ michael@0: distclean distclean-local dist dist-local check check-local plugin-check michael@0: michael@0: ## Clear suffix list michael@0: .SUFFIXES : michael@0: michael@0: ## List of standard targets michael@0: all: all-local michael@0: install: install-local michael@0: clean: clean-local michael@0: distclean : distclean-local michael@0: dist: dist-local michael@0: check: all check-local michael@0: michael@0: all-local: $(TARGET) michael@0: michael@0: install-local: all-local michael@0: $(MKINSTALLDIRS) $(DESTDIR)$(bindir) michael@0: $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) michael@0: michael@0: dist-local: michael@0: michael@0: clean-local: michael@0: test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) michael@0: $(RMV) $(TARGET) $(OBJECTS) michael@0: michael@0: distclean-local: clean-local michael@0: $(RMV) Makefile michael@0: michael@0: check-local: $(TARGET) michael@0: $(INVOKE) ./$(TARGET) $(ICUINFO_OPTS) michael@0: michael@0: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status michael@0: cd $(top_builddir) \ michael@0: && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status michael@0: -include Makefile.local michael@0: michael@0: $(TARGET) : $(OBJECTS) michael@0: $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) michael@0: $(POST_BUILD_STEP) michael@0: michael@0: PLUGIN=$(LIBPREFIX)plugin.$(SO) michael@0: SO_TARGET=$(PLUGIN) michael@0: michael@0: PLUGINDIR=$(shell pwd) michael@0: michael@0: PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt michael@0: michael@0: $(PLUGINFILE): Makefile michael@0: echo "$(CURR_FULL_DIR)/$(PLUGIN) myPlugin x=4" > $@ michael@0: michael@0: CFLAGS+=$(SHAREDLIBCFLAGS) michael@0: michael@0: $(PLUGIN): $(PLUGIN_OBJECTS) michael@0: $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) michael@0: michael@0: plugin: $(PLUGIN) michael@0: michael@0: plugin-check: $(PLUGIN) $(PLUGINFILE) michael@0: $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L michael@0: michael@0: michael@0: ifeq (,$(MAKECMDGOALS)) michael@0: -include $(DEPS) michael@0: else michael@0: ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) michael@0: -include $(DEPS) michael@0: endif michael@0: endif michael@0: