Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | #****************************************************************************** |
michael@0 | 2 | # |
michael@0 | 3 | # Copyright (C) 1999-2013, International Business Machines |
michael@0 | 4 | # Corporation and others. All Rights Reserved. |
michael@0 | 5 | # |
michael@0 | 6 | #****************************************************************************** |
michael@0 | 7 | ## Makefile.in for ICU - test/iotest |
michael@0 | 8 | |
michael@0 | 9 | ## Source directory information |
michael@0 | 10 | srcdir = @srcdir@ |
michael@0 | 11 | top_srcdir = @top_srcdir@ |
michael@0 | 12 | |
michael@0 | 13 | top_builddir = ../.. |
michael@0 | 14 | |
michael@0 | 15 | ## All the flags and other definitions are included here. |
michael@0 | 16 | include $(top_builddir)/icudefs.mk |
michael@0 | 17 | |
michael@0 | 18 | ## Build directory information |
michael@0 | 19 | subdir = test/iotest |
michael@0 | 20 | |
michael@0 | 21 | ## Extra files to remove for 'make clean' |
michael@0 | 22 | CLEANFILES = *~ $(DEPS) $(TESTXML) |
michael@0 | 23 | |
michael@0 | 24 | ## Target information |
michael@0 | 25 | TARGET = iotest$(EXEEXT) |
michael@0 | 26 | |
michael@0 | 27 | BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../ |
michael@0 | 28 | # Simplify the path for Unix |
michael@0 | 29 | BUILDDIR := $(BUILDDIR:test/iotest/../../=) |
michael@0 | 30 | # Simplify the path for Windows |
michael@0 | 31 | BUILDDIR := $(BUILDDIR:test\\iotest/../../=) |
michael@0 | 32 | # Simplify the path for Windows 98 |
michael@0 | 33 | BUILDDIR := $(BUILDDIR:TEST\\IOTEST/../../=) |
michael@0 | 34 | |
michael@0 | 35 | CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/io |
michael@0 | 36 | DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"' |
michael@0 | 37 | LIBS = $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(LIBICUIO) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
michael@0 | 38 | |
michael@0 | 39 | OBJECTS = iotest.o stream.o strtst.o filetst.o trnstst.o |
michael@0 | 40 | |
michael@0 | 41 | DEPS = $(OBJECTS:.o=.d) |
michael@0 | 42 | |
michael@0 | 43 | -include Makefile.local |
michael@0 | 44 | |
michael@0 | 45 | ## List of phony targets |
michael@0 | 46 | .PHONY : all all-local install install-local clean clean-local \ |
michael@0 | 47 | distclean distclean-local dist dist-local check check-local xcheck \ |
michael@0 | 48 | check-exhaustive check-exhaustive-local |
michael@0 | 49 | |
michael@0 | 50 | ## Clear suffix list |
michael@0 | 51 | .SUFFIXES : |
michael@0 | 52 | |
michael@0 | 53 | ## List of standard targets |
michael@0 | 54 | all: all-local |
michael@0 | 55 | install: install-local |
michael@0 | 56 | clean: clean-local |
michael@0 | 57 | distclean : distclean-local |
michael@0 | 58 | dist: dist-local |
michael@0 | 59 | check: all check-local |
michael@0 | 60 | xcheck: all xcheck-local |
michael@0 | 61 | check-exhaustive: all check-exhaustive-local |
michael@0 | 62 | |
michael@0 | 63 | all-local: $(TARGET) |
michael@0 | 64 | |
michael@0 | 65 | install-local: |
michael@0 | 66 | |
michael@0 | 67 | dist-local: |
michael@0 | 68 | |
michael@0 | 69 | clean-local: |
michael@0 | 70 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
michael@0 | 71 | $(RMV) $(OBJECTS) $(TARGET) |
michael@0 | 72 | |
michael@0 | 73 | distclean-local: clean-local |
michael@0 | 74 | $(RMV) Makefile |
michael@0 | 75 | |
michael@0 | 76 | check-local: all-local |
michael@0 | 77 | $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS) |
michael@0 | 78 | |
michael@0 | 79 | check-exhaustive-local: all-local |
michael@0 | 80 | $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) -e |
michael@0 | 81 | |
michael@0 | 82 | TESTXML=$(top_builddir)/test-$(TARGET).xml |
michael@0 | 83 | xcheck-local: all-local |
michael@0 | 84 | $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS) -x $(TESTXML) |
michael@0 | 85 | |
michael@0 | 86 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
michael@0 | 87 | cd $(top_builddir) \ |
michael@0 | 88 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
michael@0 | 89 | |
michael@0 | 90 | $(TARGET) : $(OBJECTS) |
michael@0 | 91 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
michael@0 | 92 | $(POST_BUILD_STEP) |
michael@0 | 93 | |
michael@0 | 94 | ifeq (,$(MAKECMDGOALS)) |
michael@0 | 95 | -include $(DEPS) |
michael@0 | 96 | else |
michael@0 | 97 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) |
michael@0 | 98 | ifneq ($(patsubst %install,,$(MAKECMDGOALS)),) |
michael@0 | 99 | -include $(DEPS) |
michael@0 | 100 | endif |
michael@0 | 101 | endif |
michael@0 | 102 | endif |
michael@0 | 103 |