1## Makefile.in for ICU - tools/pkgdata
2## Copyright (c) 1999-2009, 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
33ifneq ($(top_builddir),$(top_srcdir))
34CPPFLAGS += -I$(top_builddir)/common
35endif
36CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil
37DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
38LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
39
40OBJECTS = pkgdata.o pkgtypes.o
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