1 ## Makefile.in for ICU - tools/pkgdata
2 ## Copyright (c) 1999-2011, International Business Machines Corporation and
3 ## others. All Rights Reserved.
6 ## Source directory information
8 top_srcdir = @top_srcdir@
12 include $(top_builddir)/icudefs.mk
14 ## Build directory information
15 subdir = tools/pkgdata
17 TARGET_STUB_NAME = pkgdata
21 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
23 ## Extra files to remove for 'make clean'
24 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
26 ifneq ($(PKGDATA_DEFS),)
27 DEFS += $(PKGDATA_DEFS)
31 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
33 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil
34 DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
35 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
37 OBJECTS = pkgdata.o pkgtypes.o
39 DEPS = $(OBJECTS:.o=.d)
41 ## List of phony targets
42 .PHONY : all all-local install install-local clean clean-local \
43 distclean distclean-local dist dist-local check check-local install-man
48 ## List of standard targets
50 install: install-local
52 distclean : distclean-local
54 check: all check-local
56 all-local: $(TARGET) $(MAN_FILES)
58 install-local: all-local install-man
59 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
60 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
62 install-man: $(MAN_FILES)
63 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
64 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(TARGET) $(OBJECTS)
73 distclean-local: clean-local
76 check-local: all-local
78 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
80 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82 $(TARGET) : $(OBJECTS)
83 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
87 %.$(SECTION): $(srcdir)/%.$(SECTION).in
89 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
92 ifeq (,$(MAKECMDGOALS))
95 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)