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