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