1## Makefile.in for ICU - tools/escapesrc 2## Copyright (C) 2016 and later: Unicode, Inc. and others. 3## License & terms of use: http://www.unicode.org/copyright.html 4## Copyright (c) 1999-2011, International Business Machines Corporation and 5## others. All Rights Reserved. 6## Steven R. Loomis 7 8# To avoid recursion 9SKIP_ESCAPING=YES 10 11## Source directory information 12srcdir = @srcdir@ 13top_srcdir = @top_srcdir@ 14 15top_builddir = ../.. 16 17include $(top_builddir)/icudefs.mk 18 19## Build directory information 20subdir = tools/escapesrc 21 22TARGET_STUB_NAME = escapesrc 23 24SECTION = 8 25 26#MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) 27 28## Extra files to remove for 'make clean' 29CLEANFILES = *~ $(DEPS) $(MAN_FILES) ./output-*.cpp 30 31## Target information 32TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) 33 34CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil 35#LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) 36LIBS += $(DEFAULT_LIBS) $(LIB_M) 37 38OBJECTS = escapesrc.o 39 40DEPS = $(OBJECTS:.o=.d) 41 42## List of phony targets 43.PHONY : all all-local install install-local clean clean-local \ 44distclean distclean-local dist dist-local check check-local install-man 45 46## Clear suffix list 47.SUFFIXES : 48 49## List of standard targets 50all: all-local 51install: install-local 52clean: clean-local 53distclean : distclean-local 54dist: dist-local 55check: all check-local 56 57all-local: $(TARGET) $(MAN_FILES) 58 59install-local: all-local install-man 60 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) 61 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir) 62 63install-man: $(MAN_FILES) 64# $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) 65# $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) 66 67 68dist-local: 69 70clean-local: 71 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 72 $(RMV) $(TARGET) $(OBJECTS) 73 74distclean-local: clean-local 75 $(RMV) Makefile 76 77check-local: all-local 78 @echo Testing test-nochange.cpp 79 @$(INVOKE) $(TARGET) $(srcdir)/test-nochange.cpp ./output-nochange.cpp 80 @-diff -I '#line.*' $(srcdir)/test-nochange.cpp ./output-nochange.cpp || (echo >&2 'warning: diff failed or not found' ; true) 81 @echo Testing test-simple.cpp 82 @$(INVOKE) $(TARGET) $(srcdir)/test-simple.cpp ./output-simple.cpp 83 @-diff -I '#line.*' $(srcdir)/expect-simple.cpp ./output-simple.cpp || (echo >&2 'warning: diff failed or not found' ; true) 84 85Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 86 cd $(top_builddir) \ 87 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 88 89$(TARGET) : $(OBJECTS) 90 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 91 $(POST_BUILD_STEP) 92 93 94%.$(SECTION): $(srcdir)/%.$(SECTION).in 95 cd $(top_builddir) \ 96 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 97 98# depends on ICU being built 99gen-table: tblgen$(EXEEXT) 100 $(INVOKE) ./tblgen$(EXEEXT) > $(srcdir)/cptbl.h 101 102tblgen$(EXEEXT): tblgen.o 103 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) $(LIBICUUC) 104 105ifeq (,$(MAKECMDGOALS)) 106-include $(DEPS) 107else 108ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 109-include $(DEPS) 110endif 111endif 112 113