]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU - tools/pkgdata |
374ca955 | 2 | ## Copyright (c) 1999-2004, International Business Machines Corporation and |
b75a7d8f A |
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 | ## | |
18 | ||
374ca955 A |
19 | TARGET_STUB_NAME = pkgdata |
20 | ||
b75a7d8f A |
21 | SECTION = 1 |
22 | ||
374ca955 | 23 | MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) |
b75a7d8f A |
24 | |
25 | ALL_MAN_FILES = $(MANX_FILES) | |
26 | ||
27 | ## Extra files to remove for 'make clean' | |
374ca955 A |
28 | CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES) |
29 | ||
30 | ifneq ($(PKGDATA_DEFS),) | |
31 | DEFS += $(PKGDATA_DEFS) | |
32 | endif | |
b75a7d8f A |
33 | |
34 | ## Target information | |
374ca955 | 35 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
b75a7d8f A |
36 | |
37 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
38 | DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\" | |
39 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
40 | ||
374ca955 | 41 | OBJECTS = pkgdata.o pkgtypes.o make.o dllmode.o cmnmode.o filemode.o sttcmode.o winmode.o |
b75a7d8f A |
42 | |
43 | DEPS = $(OBJECTS:.o=.d) | |
44 | ||
45 | ## List of phony targets | |
374ca955 | 46 | .PHONY : all all-local install install-local clean clean-local \ |
b75a7d8f A |
47 | distclean distclean-local dist dist-local check \ |
48 | check-local install-man install-manx | |
49 | ||
50 | ## Clear suffix list | |
51 | .SUFFIXES : | |
52 | ||
53 | ## List of standard targets | |
54 | all: all-local | |
55 | install: install-local | |
56 | clean: clean-local | |
57 | distclean : distclean-local | |
58 | dist: dist-local | |
59 | check: all check-local | |
60 | ||
374ca955 | 61 | all-local: $(TARGET) $(ALL_MAN_FILES) |
b75a7d8f A |
62 | |
63 | install-local: all-local install-man | |
64 | $(MKINSTALLDIRS) $(DESTDIR)$(bindir) | |
374ca955 | 65 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) |
b75a7d8f A |
66 | |
67 | # man page | |
68 | install-man: install-manx | |
69 | install-manx: $(MANX_FILES) | |
70 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
71 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
72 | ||
73 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
74 | cd $(top_builddir) \ | |
75 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
76 | ||
77 | dist-local: | |
78 | ||
79 | clean-local: | |
80 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
81 | $(RMV) $(TARGET) $(OBJECTS) | |
82 | ||
83 | distclean-local: clean-local | |
84 | $(RMV) Makefile | |
85 | ||
86 | check-local: all-local | |
87 | ||
88 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
89 | cd $(top_builddir) \ | |
90 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
91 | ||
92 | ||
93 | cd $(top_builddir) \ | |
94 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
95 | ||
96 | $(TARGET) : $(OBJECTS) | |
97 | $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) | |
98 | ||
99 | ifeq (,$(MAKECMDGOALS)) | |
100 | -include $(DEPS) | |
101 | else | |
102 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
103 | -include $(DEPS) | |
104 | endif | |
105 | endif |