Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | ## Makefile.in for ICU - tools/icuinfo |
michael@0 | 2 | ## Copyright (c) 1999-2012, International Business Machines Corporation and |
michael@0 | 3 | ## others. All Rights Reserved. |
michael@0 | 4 | ## Madhu Katragadda |
michael@0 | 5 | |
michael@0 | 6 | ## Source directory information |
michael@0 | 7 | srcdir = @srcdir@ |
michael@0 | 8 | top_srcdir = @top_srcdir@ |
michael@0 | 9 | |
michael@0 | 10 | top_builddir = ../.. |
michael@0 | 11 | |
michael@0 | 12 | include $(top_builddir)/icudefs.mk |
michael@0 | 13 | |
michael@0 | 14 | ## Build directory information |
michael@0 | 15 | subdir = tools/icuinfo |
michael@0 | 16 | |
michael@0 | 17 | ## Extra files to remove for 'make clean' |
michael@0 | 18 | CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) |
michael@0 | 19 | |
michael@0 | 20 | ## Target information |
michael@0 | 21 | TARGET = icuinfo$(EXEEXT) |
michael@0 | 22 | |
michael@0 | 23 | CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(top_srcdir)/tools/ctestfw |
michael@0 | 24 | CPPFLAGS+= -I$(top_srcdir)/i18n |
michael@0 | 25 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
michael@0 | 26 | |
michael@0 | 27 | OBJECTS = icuinfo.o |
michael@0 | 28 | PLUGIN_OBJECTS = testplug.o |
michael@0 | 29 | |
michael@0 | 30 | DEPS = $(OBJECTS:.o=.d) |
michael@0 | 31 | |
michael@0 | 32 | # pass some information |
michael@0 | 33 | |
michael@0 | 34 | ICUINFO_OPTS=-i ../../data/out/build/$(ICUDATA_PLATFORM_NAME) -x $(top_builddir)/config/icuinfo.xml -v -K |
michael@0 | 35 | |
michael@0 | 36 | ## List of phony targets |
michael@0 | 37 | .PHONY : all all-local install install-local clean clean-local \ |
michael@0 | 38 | distclean distclean-local dist dist-local check check-local plugin-check |
michael@0 | 39 | |
michael@0 | 40 | ## Clear suffix list |
michael@0 | 41 | .SUFFIXES : |
michael@0 | 42 | |
michael@0 | 43 | ## List of standard targets |
michael@0 | 44 | all: all-local |
michael@0 | 45 | install: install-local |
michael@0 | 46 | clean: clean-local |
michael@0 | 47 | distclean : distclean-local |
michael@0 | 48 | dist: dist-local |
michael@0 | 49 | check: all check-local |
michael@0 | 50 | |
michael@0 | 51 | all-local: $(TARGET) |
michael@0 | 52 | |
michael@0 | 53 | install-local: all-local |
michael@0 | 54 | $(MKINSTALLDIRS) $(DESTDIR)$(bindir) |
michael@0 | 55 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) |
michael@0 | 56 | |
michael@0 | 57 | dist-local: |
michael@0 | 58 | |
michael@0 | 59 | clean-local: |
michael@0 | 60 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
michael@0 | 61 | $(RMV) $(TARGET) $(OBJECTS) |
michael@0 | 62 | |
michael@0 | 63 | distclean-local: clean-local |
michael@0 | 64 | $(RMV) Makefile |
michael@0 | 65 | |
michael@0 | 66 | check-local: $(TARGET) |
michael@0 | 67 | $(INVOKE) ./$(TARGET) $(ICUINFO_OPTS) |
michael@0 | 68 | |
michael@0 | 69 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
michael@0 | 70 | cd $(top_builddir) \ |
michael@0 | 71 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
michael@0 | 72 | -include Makefile.local |
michael@0 | 73 | |
michael@0 | 74 | $(TARGET) : $(OBJECTS) |
michael@0 | 75 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
michael@0 | 76 | $(POST_BUILD_STEP) |
michael@0 | 77 | |
michael@0 | 78 | PLUGIN=$(LIBPREFIX)plugin.$(SO) |
michael@0 | 79 | SO_TARGET=$(PLUGIN) |
michael@0 | 80 | |
michael@0 | 81 | PLUGINDIR=$(shell pwd) |
michael@0 | 82 | |
michael@0 | 83 | PLUGINFILE=$(PLUGINDIR)/icuplugins$(SO_TARGET_VERSION_MAJOR).txt |
michael@0 | 84 | |
michael@0 | 85 | $(PLUGINFILE): Makefile |
michael@0 | 86 | echo "$(CURR_FULL_DIR)/$(PLUGIN) myPlugin x=4" > $@ |
michael@0 | 87 | |
michael@0 | 88 | CFLAGS+=$(SHAREDLIBCFLAGS) |
michael@0 | 89 | |
michael@0 | 90 | $(PLUGIN): $(PLUGIN_OBJECTS) |
michael@0 | 91 | $(SHLIB.cc) $(SHAREDLIBCFLAGS) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) |
michael@0 | 92 | |
michael@0 | 93 | plugin: $(PLUGIN) |
michael@0 | 94 | |
michael@0 | 95 | plugin-check: $(PLUGIN) $(PLUGINFILE) |
michael@0 | 96 | $(INVOKE) ICU_PLUGINS="$(CURR_FULL_DIR)" ./$(TARGET) -v -L |
michael@0 | 97 | |
michael@0 | 98 | |
michael@0 | 99 | ifeq (,$(MAKECMDGOALS)) |
michael@0 | 100 | -include $(DEPS) |
michael@0 | 101 | else |
michael@0 | 102 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) |
michael@0 | 103 | -include $(DEPS) |
michael@0 | 104 | endif |
michael@0 | 105 | endif |
michael@0 | 106 |