]>
Commit | Line | Data |
---|---|---|
1 | ## Makefile.in for ICU - tools/pkgdata | |
2 | ## Copyright (c) 1999-2005, 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 | ifneq ($(top_builddir),$(top_srcdir)) | |
34 | CPPFLAGS += -I$(top_builddir)/common | |
35 | endif | |
36 | CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
37 | DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\" | |
38 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
39 | ||
40 | OBJECTS = pkgdata.o pkgtypes.o make.o dllmode.o cmnmode.o filemode.o sttcmode.o winmode.o | |
41 | ||
42 | DEPS = $(OBJECTS:.o=.d) | |
43 | ||
44 | ## List of phony targets | |
45 | .PHONY : all all-local install install-local clean clean-local \ | |
46 | distclean distclean-local dist dist-local check check-local install-man | |
47 | ||
48 | ## Clear suffix list | |
49 | .SUFFIXES : | |
50 | ||
51 | ## List of standard targets | |
52 | all: all-local | |
53 | install: install-local | |
54 | clean: clean-local | |
55 | distclean : distclean-local | |
56 | dist: dist-local | |
57 | check: all check-local | |
58 | ||
59 | all-local: $(TARGET) $(MAN_FILES) | |
60 | ||
61 | install-local: all-local install-man | |
62 | $(MKINSTALLDIRS) $(DESTDIR)$(bindir) | |
63 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) | |
64 | ||
65 | install-man: $(MAN_FILES) | |
66 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
67 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
68 | ||
69 | ||
70 | dist-local: | |
71 | ||
72 | clean-local: | |
73 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
74 | $(RMV) $(TARGET) $(OBJECTS) | |
75 | ||
76 | distclean-local: clean-local | |
77 | $(RMV) Makefile | |
78 | ||
79 | check-local: all-local | |
80 | ||
81 | Makefile: $(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.c) $(OUTOPT)$@ $^ $(LIBS) | |
87 | ||
88 | ||
89 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
90 | cd $(top_builddir) \ | |
91 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
92 | ||
93 | ||
94 | ifeq (,$(MAKECMDGOALS)) | |
95 | -include $(DEPS) | |
96 | else | |
97 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
98 | -include $(DEPS) | |
99 | endif | |
100 | endif | |
101 |