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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/tools/icuinfo/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,106 @@
     1.4 +## Makefile.in for ICU - tools/icuinfo
     1.5 +## Copyright (c) 1999-2012, International Business Machines Corporation and
     1.6 +## others. All Rights Reserved.
     1.7 +## Madhu Katragadda
     1.8 +
     1.9 +## Source directory information
    1.10 +srcdir = @srcdir@
    1.11 +top_srcdir = @top_srcdir@
    1.12 +
    1.13 +top_builddir = ../..
    1.14 +
    1.15 +include $(top_builddir)/icudefs.mk
    1.16 +
    1.17 +## Build directory information
    1.18 +subdir = tools/icuinfo
    1.19 +
    1.20 +## Extra files to remove for 'make clean'
    1.21 +CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
    1.22 +
    1.23 +## Target information
    1.24 +TARGET = icuinfo$(EXEEXT)
    1.25 +
    1.26 +CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools/ctestfw 
    1.27 +CPPFLAGS+= -I$(top_srcdir)/i18n
    1.28 +LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
    1.29 +
    1.30 +OBJECTS = icuinfo.o
    1.31 +PLUGIN_OBJECTS = testplug.o
    1.32 +
    1.33 +DEPS = $(OBJECTS:.o=.d)
    1.34 +
    1.35 +# pass some information
    1.36 +
    1.37 +ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v -K
    1.38 +
    1.39 +## List of phony targets
    1.40 +.PHONY : all all-local install install-local clean clean-local		\
    1.41 +distclean distclean-local dist dist-local check check-local plugin-check
    1.42 +
    1.43 +## Clear suffix list
    1.44 +.SUFFIXES :
    1.45 +
    1.46 +## List of standard targets
    1.47 +all: all-local
    1.48 +install: install-local
    1.49 +clean: clean-local
    1.50 +distclean : distclean-local
    1.51 +dist: dist-local
    1.52 +check: all check-local
    1.53 +
    1.54 +all-local: $(TARGET) 
    1.55 +
    1.56 +install-local: all-local
    1.57 +	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
    1.58 +	$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
    1.59 +
    1.60 +dist-local:
    1.61 +
    1.62 +clean-local:
    1.63 +	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
    1.64 +	$(RMV) $(TARGET) $(OBJECTS)
    1.65 +
    1.66 +distclean-local: clean-local
    1.67 +	$(RMV) Makefile
    1.68 +
    1.69 +check-local: $(TARGET)
    1.70 +	$(INVOKE) ./$(TARGET) $(ICUINFO_OPTS)
    1.71 +
    1.72 +Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
    1.73 +	cd $(top_builddir) \
    1.74 +	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    1.75 +-include Makefile.local
    1.76 +
    1.77 +$(TARGET) : $(OBJECTS)
    1.78 +	$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 
    1.79 +	$(POST_BUILD_STEP)
    1.80 +
    1.81 +PLUGIN=$(LIBPREFIX)plugin.$(SO)
    1.82 +SO_TARGET=$(PLUGIN)
    1.83 +
    1.84 +PLUGINDIR=$(shell pwd)
    1.85 +
    1.86 +PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt
    1.87 +
    1.88 +$(PLUGINFILE): Makefile
    1.89 +	echo "$(CURR_FULL_DIR)/$(PLUGIN)	myPlugin	x=4" > $@
    1.90 +
    1.91 +CFLAGS+=$(SHAREDLIBCFLAGS)
    1.92 +
    1.93 +$(PLUGIN): $(PLUGIN_OBJECTS)
    1.94 +	$(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
    1.95 +
    1.96 +plugin: $(PLUGIN)
    1.97 +
    1.98 +plugin-check: $(PLUGIN) $(PLUGINFILE)
    1.99 +	$(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L
   1.100 +
   1.101 +
   1.102 +ifeq (,$(MAKECMDGOALS))
   1.103 +-include $(DEPS)
   1.104 +else
   1.105 +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
   1.106 +-include $(DEPS)
   1.107 +endif
   1.108 +endif
   1.109 +

mercurial