1## Makefile.in for ICU - tools/pkgdata 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## Source directory information 9srcdir = @srcdir@ 10top_srcdir = @top_srcdir@ 11 12top_builddir = ../.. 13 14include $(top_builddir)/icudefs.mk 15 16## Build directory information 17subdir = tools/pkgdata 18 19TARGET_STUB_NAME = pkgdata 20 21SECTION = 1 22 23MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) 24 25## Extra files to remove for 'make clean' 26CLEANFILES = *~ $(DEPS) $(MAN_FILES) 27 28ifneq ($(PKGDATA_DEFS),) 29DEFS += $(PKGDATA_DEFS) 30endif 31 32## Target information 33TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) 34 35CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(srcdir)/../toolutil 36DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\" 37LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) 38 39SOURCES = $(shell cat $(srcdir)/sources.txt) 40OBJECTS = $(patsubst %.cpp,%.o,$(patsubst %.c,%.o, $(SOURCES))) 41 42DEPS = $(OBJECTS:.o=.d) 43 44## List of phony targets 45.PHONY : all all-local install install-local clean clean-local \ 46distclean distclean-local dist dist-local check check-local install-man 47 48## Clear suffix list 49.SUFFIXES : 50 51## List of standard targets 52all: all-local 53install: install-local 54clean: clean-local 55distclean : distclean-local 56dist: dist-local 57check: all check-local 58 59all-local: $(TARGET) $(MAN_FILES) 60 61install-local: all-local install-man 62 $(MKINSTALLDIRS) $(DESTDIR)$(bindir) 63 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) 64 65install-man: $(MAN_FILES) 66 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) 67 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) 68 69 70dist-local: 71 72clean-local: 73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 74 $(RMV) $(TARGET) $(OBJECTS) 75 76distclean-local: clean-local 77 $(RMV) Makefile 78 79check-local: all-local 80 81Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 82 cd $(top_builddir) \ 83 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 84 85$(TARGET) : $(OBJECTS) 86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 87 $(POST_BUILD_STEP) 88 89 90%.$(SECTION): $(srcdir)/%.$(SECTION).in 91 cd $(top_builddir) \ 92 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 93 94 95ifeq (,$(MAKECMDGOALS)) 96-include $(DEPS) 97else 98ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 99-include $(DEPS) 100endif 101endif 102 103