Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / icu / source / tools / pkgdata / Makefile.in
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
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9
10 top_builddir = ../..
11
12 include $(top_builddir)/icudefs.mk
13
14 ## Build directory information
15 subdir = tools/pkgdata
16
17 TARGET_STUB_NAME = pkgdata
18
19 SECTION = 1
20
21 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
22
23 ## Extra files to remove for 'make clean'
24 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
25
26 ifneq ($(PKGDATA_DEFS),)
27 DEFS += $(PKGDATA_DEFS)
28 endif
29
30 ## Target information
31 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
32
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)
36
37 OBJECTS = pkgdata.o pkgtypes.o
38
39 DEPS = $(OBJECTS:.o=.d)
40
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
44
45 ## Clear suffix list
46 .SUFFIXES :
47
48 ## List of standard targets
49 all: all-local
50 install: install-local
51 clean: clean-local
52 distclean : distclean-local
53 dist: dist-local
54 check: all check-local
55
56 all-local: $(TARGET) $(MAN_FILES)
57
58 install-local: all-local install-man
59         $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
60         $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
61
62 install-man: $(MAN_FILES)
63         $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
64         $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
65
66
67 dist-local:
68
69 clean-local:
70         test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71         $(RMV) $(TARGET) $(OBJECTS)
72
73 distclean-local: clean-local
74         $(RMV) Makefile
75
76 check-local: all-local
77
78 Makefile: $(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
92 ifeq (,$(MAKECMDGOALS))
93 -include $(DEPS)
94 else
95 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
96 -include $(DEPS)
97 endif
98 endif
99