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.
8 ## Source directory information
10 top_srcdir = @top_srcdir@
14 include $(top_builddir)/icudefs.mk
16 ## Build directory information
17 subdir = tools/pkgdata
19 TARGET_STUB_NAME = pkgdata
23 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
25 ## Extra files to remove for 'make clean'
26 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
28 ifneq ($(PKGDATA_DEFS),)
29 DEFS += $(PKGDATA_DEFS)
33 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
35 CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(srcdir)/../toolutil
36 DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
37 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
39 OBJECTS = pkgdata.o pkgtypes.o
41 DEPS = $(OBJECTS:.o=.d)
43 ## List of phony targets
44 .PHONY : all all-local install install-local clean clean-local \
45 distclean distclean-local dist dist-local check check-local install-man
50 ## List of standard targets
52 install: install-local
54 distclean : distclean-local
56 check: all check-local
58 all-local: $(TARGET) $(MAN_FILES)
60 install-local: all-local install-man
61 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
62 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
64 install-man: $(MAN_FILES)
65 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
66 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
72 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
73 $(RMV) $(TARGET) $(OBJECTS)
75 distclean-local: clean-local
78 check-local: all-local
80 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
82 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
84 $(TARGET) : $(OBJECTS)
85 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
89 %.$(SECTION): $(srcdir)/%.$(SECTION).in
91 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
94 ifeq (,$(MAKECMDGOALS))
97 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)