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